Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
JET FAQ How do I create user specific code regions?
Jet2 provides control tags for specifying regions that contain user specific code. How should I use them ?
A user specific code region has to be declared this way :
<c:userRegion>//BEGIN user code marker<c:initialCode> //todo insert your code here </c:initialCode>//END user code marker</c:userRegion>
The BEGIN and END markers are used for keeping the user code when a code regeneration happens. The whole string between userRegion and initialCode becomes the marker. It is important to declare them on one line between the two delimiter tags, without extra spaces, especially if you do use code formatter.
Back to the M2T-JET-FAQ