Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse JET Guide
Previous Page Home Next Page

<c:userRegion>

Standard JET2 Control Tags

userRegion

Define a region in the generated text where users may write customized code.

The tag must contain a single 'initialCode' tag. Content before the initialCode tag is considered a 'begin marker', while content after it is considered an

'end marker'. During execution, the existing file is searched for the begin and end markers. If found, the content of the user region tag is replaced with

the content found in the existing file. If the markers are not found (or the file does not exist), then the markers, along with the content of the initialCode

tag are written.


Tag Summary
required <c:userRegion>
    content to be written
</c:userRegion>
full tag <c:userRegion>
    content to be written
</c:userRegion>

Example
<%-- Define user region 101. Code in block will never be updated by subsequent executions --%>
<c:userRegion>
// BEGIN region 101
  <c:initialCode>
    default code
  </c:initialCode>
// END region 101
</c:userRegion>

<%-- Define user region 102. Code in block will be updated by subsequent executions only if @generated is found in block --%>
<c:userRegion>
// BEGIN region 102
  <c:initialCode unmodifiedMarker="@generated">
    // @generated
    default code
  </c:initialCode>
// END region 102
</c:userRegion>


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire