Jump to: navigation, search

Difference between revisions of "EDT:Code snippets"

Line 17: Line 17:
 
To share a code snippet:  
 
To share a code snippet:  
  
#On the page of interest, click '''Edit''' and, if necessary, log in to eclipse.org.  
+
*On the page of interest, click '''Edit''' and, if necessary, log in to eclipse.org.  
#Add a section or update an existing one; but always include your code in the following wikitext markup:<br>
+
*Add a section or update an existing one; but always include your code in the following wikitext markup:<br>
 
<pre>        &lt;source lang="java"&gt;
 
<pre>        &lt;source lang="java"&gt;
 
           // put code here  
 
           // put code here  
Line 24: Line 24:
 
   
 
   
 
</pre>  
 
</pre>  
#If you create a new page, ensure that the web address begins with EDT:.
+
*If you create a new page, ensure that the web address begins with EDT:.
#To add most content, click Wikitext or disable the Rich Editor.  
+
*To add most content, click Wikitext or disable the Rich Editor.  
  
 
For help with editing, see [http://meta.wikimedia.org/wiki/Help:Wikitext_examples| Wikitext examples]. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
 
For help with editing, see [http://meta.wikimedia.org/wiki/Help:Wikitext_examples| Wikitext examples]. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
  
 
[[Category:EDT]]
 
[[Category:EDT]]

Revision as of 11:00, 10 February 2012

Declaring values of EGL native types

Working with custom types

Writing basic logic

Working with a database

Accessing a service

Declaring widgets



To share a code snippet:

  • On the page of interest, click Edit and, if necessary, log in to eclipse.org.
  • Add a section or update an existing one; but always include your code in the following wikitext markup:
        <source lang="java">
          // put code here 
        </source>
 
  • If you create a new page, ensure that the web address begins with EDT:.
  • To add most content, click Wikitext or disable the Rich Editor.

For help with editing, see Wikitext examples.