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 14:52 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
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 07:58 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1638
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: Mon Nov 24 16:22:38 GMT 2014

Powered by FUDForum. Page generated in 0.01713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software