Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Protected Regions in Acceleo for Java
Protected Regions in Acceleo for Java [message #481568] Fri, 21 August 2009 10:52 Go to next message
Timothy Marc is currently offline Timothy Marc
Messages: 547
Registered: July 2009
Senior Member
Hey all,

without digging deeper into the uml2java generation capabilities of
Acceleo, i would like to know, whether protected regions are considered
for an incremental implementation and regeneration process?

Thanks ion advance

/Timothy
Re: Protected Regions in Acceleo for Java [message #481745 is a reply to message #481568] Mon, 24 August 2009 03:58 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1609
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010009000502050908090705
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Timothy,

If what you wish to do is generate java code, and your generating it
within eclipse (not standalone), you can simply use "@generated"
annotations in the javadoc of your generated code : we're leveraging JMerge.

Other than that, you can use [/protected] blocks in your
template to protect specifiic areas of the code. These areas can be
modified in the generated code without being overriden by subsequent
generations.

Laurent

Timothy Marc a
Previous Topic:jet xpath expression to reference properties on an object valued model attribute
Next Topic:How to use XMI model files as input for Xpand?
Goto Forum:
  


Current Time: Fri Apr 18 10:07:49 EDT 2014

Powered by FUDForum. Page generated in 0.01950 seconds