Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'doc/org.eclipse.jet.doc/references/taglibs/controlTags/initialCodeTag.html')
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/controlTags/initialCodeTag.html34
1 files changed, 26 insertions, 8 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/initialCodeTag.html b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/initialCodeTag.html
index 85fefc2..191b627 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/initialCodeTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/initialCodeTag.html
@@ -35,22 +35,25 @@
<TR>
<TD width="10%">full tag</TD>
<TD><SPAN style="font-family: monospace">
- &lt;c:initialCode&gt;<br>
+ &lt;c:initialCode unmodifiedMarker=&quot;<I>value</I>&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
&lt;/c:initialCode&gt;
</SPAN></TD>
</TR>
</TBODY>
</TABLE>
-<exists node="tag/attribute use='required'">
<HR>
<TABLE border="1" width="100%">
<TBODY>
<TR>
- <TH colspan="2" align="left">Required Attributes</TH></TR>
+ <TH colspan="2" align="left">Optional Attributes</TH></TR>
+ <TR>
+ <TR>
+ <TD width="10%">unmodifiedMarker</TD>
+ <TD><BR> A string that when present in the content of the existing code indicates that the code has not been modified by the user, and should be replace with the contents of this initial code block.<BR> </TD>
+ </TR>
</TBODY>
</TABLE>
-</exists>
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -60,10 +63,25 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin initialCode example -->
-
- &lt;c:initialCode&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
- &lt;/c:initialCode&gt;
+ &lt;%-- Define user region 101. Code in block will never be updated by subsequent executions --%&gt;<BR>
+ &lt;c:userRegion&gt;<BR>
+ // BEGIN region 101<BR>
+ &nbsp;&nbsp;&lt;c:initialCode&gt;<br>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>default code</I><BR>
+ &nbsp;&nbsp;&lt;/c:initialCode&gt;<BR>
+ // END region 101<BR>
+ &lt;/c:userRegion&gt;<BR><BR>
+
+ &lt;%-- Define user region 102. Code in block will be updated by subsequent
+ executions only if @generated is found in block --%&gt;<BR>
+ &lt;c:userRegion&gt;<BR>
+ // BEGIN region 102<BR>
+ &nbsp;&nbsp;&lt;c:initialCode unmodifiedMarker="@generated"&gt;<br>
+ &nbsp;&nbsp;&nbsp;&nbsp;// @generated<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>default code</I><BR>
+ &nbsp;&nbsp;&lt;/c:initialCode&gt;<BR>
+ // END region 102<BR>
+ &lt;/c:userRegion&gt;<BR>
<!-- End initialCode example -->
</SPAN></TD>
</TR>

Back to the top