Skip to main content

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.

Jump to: navigation, search

JET FAQ How do I create user specific code regions?

Revision as of 09:35, 25 June 2007 by Aleks dworak.fr.ibm.com (Talk | contribs) (Answer)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Question

Jet2 provides control tags for specifying regions that contain user specific code. How should I use them ?

Answer

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

Back to the top