summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-09-19 17:04:06 (EDT)
committer pelder2006-09-19 17:04:06 (EDT)
commitaeb93b9c181c1f74f6be80a34d0de86a1caf1b8f (patch)
tree958814f381b6d39fa8dae7c54c92cb374a5c3a6c
parentf88eda1772801fea03435713b9063fb49740a4d3 (diff)
downloadorg.eclipse.jet-aeb93b9c181c1f74f6be80a34d0de86a1caf1b8f.zip
org.eclipse.jet-aeb93b9c181c1f74f6be80a34d0de86a1caf1b8f.tar.gz
org.eclipse.jet-aeb93b9c181c1f74f6be80a34d0de86a1caf1b8f.tar.bz2
[157811] Add examples to javaTags
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/classTag.html13
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/impliedImportTag.html6
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/importTag.html8
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/importsLocationTag.html5
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/mergeTag.html11
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/packageTag.html5
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html12
7 files changed, 50 insertions, 10 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/classTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/classTag.html
index e446ea2..4db2c70 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/classTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/classTag.html
@@ -92,7 +92,18 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin class example -->
- &lt;java:class name=&quot;<I>value</I>&quot; template=&quot;<I>value</I>&quot;/&gt;<br>
+ &lt;%-- create class Foo in package org.example in source folder myProject/src --%&lt;<BR>
+ &lt;java:class name=&quot;Foo&quot; package="org.example" srcFolder="myProject/src" template=&quot;myJava.jet&quot;/&gt;<br><BR>
+
+ &lt;%-- create classes Foo &amp; Bar in package org.example in source folder myProject/src --%><BR>
+ &lt;ws:project name="myProject"&gt;<BR>
+ &nbsp;&nbsp;&lt;ws:folder path=&quot;src&quot;&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;java:package name="org.example"&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;java:class name="Foo" template="myFoo.jet"/&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;java:class name="Bar" template="myBar.jet"/&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;/java:package&gt;<BR>
+ &nbsp;&nbsp;&lt;/ws:folder&gt;<BR>
+ &lt;/ws:project&gt;<BR>
<!-- End class example -->
</SPAN></TD>
</TR>
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/impliedImportTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/impliedImportTag.html
index 7ab7a0a..6ca495b 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/impliedImportTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/impliedImportTag.html
@@ -60,7 +60,11 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin impliedImport example -->
- &lt;java:impliedImport name=&quot;<I>value</I>&quot;/&gt;<br>
+ &lt;%-- setup implied import of org.example.List class --%&gt;<BR>
+ package org.example;<BR><BR>
+ &lt;java:importsLocation package="org.example"&gt;<BR>
+ &lt;java:impliedImport name=&quot;org.example.List&quot;/&gt;<br>
+
<!-- End impliedImport example -->
</SPAN></TD>
</TR>
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importTag.html
index 376faf0..1b647d3 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importTag.html
@@ -60,9 +60,11 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin import example -->
- &lt;java:import&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content consumed by tag evaluation</I><BR>
- &lt;/java:import&gt;
+ &lt;%-- generates List and in import java.util.List import if another List is not imported --%&gt;<BR>
+ package org.example;<BR><BR>
+ &lt;java:importsLocation package=&quot;org.example&quot;/&gt;<BR><BR>
+ <I>... later in the template ...</I><BR><BR>
+ &lt;java:import&gt;java.util.List&lt;/java:import&gt; myList;
<!-- End import example -->
</SPAN></TD>
</TR>
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importsLocationTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importsLocationTag.html
index d3d62ea..38f3e45 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importsLocationTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/importsLocationTag.html
@@ -60,7 +60,10 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin importsLocation example -->
- &lt;java:importsLocation package=&quot;<I>value</I>&quot;/&gt;<br>
+ &lt;%-- setup location for automatical import statement insertion --%&gt;<BR>
+ package org.example;<BR><BR>
+
+ &lt;java:importsLocation package=&quot;org.example&quot;/&gt;<br>
<!-- End importsLocation example -->
</SPAN></TD>
</TR>
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/mergeTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/mergeTag.html
index bf2048f..27d25eb 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/mergeTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/mergeTag.html
@@ -72,7 +72,16 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin merge example -->
- &lt;java:merge/&gt;<br>
+ <i>... template generating a .java or .properties file ...</i><BR><BR>
+ &lt;%-- Merge the generated contents with any existing file, using the standard JMerge rules --%&gt;<BR>
+ &lt;java:merge/&gt;<br><br>
+
+ &lt;%-- Merge using custom JMerge rules --%&gt;<BR>
+ &lt;java:merge rules=&quot;myMergeRules.xml&quot; rulesContext=&quot;transform&quot;/&gt;<br><br>
+
+ &lt;%-- Explicit use of EMF Codegen merge rules (same as first) --%&gt;<BR>
+ &lt;java:merge rules=&quot;platform:/plugin/org.eclipse.emf.codegen.ecore/templates/emf-merge.xml&quot;/&gt;<br><br>
+
<!-- End merge example -->
</SPAN></TD>
</TR>
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/packageTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/packageTag.html
index a593a39..2451b9a 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/packageTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/packageTag.html
@@ -76,8 +76,9 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin package example -->
- &lt;java:package name=&quot;<I>value</I>&quot;&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
+ &lt;%-- Create a package in myProject/src folder --%&gt;<BR>
+ &lt;java:package name=&quot;org.example&quot; srcFolder=&quot;myProject/src&quot;&gt;<br>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>... java:class and java:resource tags here will be relative to org.example ...</I><BR>
&lt;/java:package&gt;
<!-- End package example -->
</SPAN></TD>
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html
index c0c6985..6f86413 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html
@@ -92,7 +92,17 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin resource example -->
- &lt;java:resource name=&quot;<I>value</I>&quot; template=&quot;<I>value</I>&quot;/&gt;<br>
+ &lt;%-- create resource Messages.properties in package org.example in source folder myProject/src --%><BR>
+ &lt;java:resource name=&quot;Messages.properties&quot; package="org.example" srcFolder="myProject/src" template=&quot;myprops.jet&quot;/&gt;<br><BR>
+
+ &lt;%-- resource Messages.properties in package org.example in source folder myProject/src --%><BR>
+ &lt;ws:project name="myProject"&gt;<BR>
+ &nbsp;&nbsp;&lt;ws:folder path=&quot;src&quot;&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;java:package name="org.example"&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;java:resource name="Messages.properties" template="myprops.jet"/&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;/java:package&gt;<BR>
+ &nbsp;&nbsp;&lt;/ws:folder&gt;<BR>
+ &lt;/ws:project&gt;<BR>
<!-- End resource example -->
</SPAN></TD>
</TR>