Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » xtend2, UML2, MWE2(How can i use uml2 models in xtend2)
xtend2, UML2, MWE2 [message #876739] Fri, 25 May 2012 08:11 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 2
Registered: April 2011
Junior Member
Hi,

i want to write a code generator for UML2 models and transform it by xtend2. Unfortunately i didn't find a good tutorial or configuration hints.

My Question:

How can i configure the mwe2 file for reading uml2 models, use uml profiles and of course transform it by xtend2.

Anybody an idea where can i find a good tutorial or sample project?

Thx
Re: xtend2, UML2, MWE2 [message #876755 is a reply to message #876739] Fri, 25 May 2012 08:37 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4188
Registered: July 2009
Senior Member
Hi

It depends which UML namespaces you want. For Juno, it's much easier
because a UMLResourcesUtil.init() is available to provide the large
number of non-trivial registration for standalone usage. You might get
away with just calling that in an extension of MWE's StandaloneSetup.

The OCL build procedures have UML processing so you might be interested
in following through
/org.eclipse.ocl.examples.build/src/org/eclipse/ocl/examples/build/GeneratePivotModel.mwe2.

Acceleo already has UML code generators. For Juno, OCL adds an Acceleo
template for OCL 2 Java that may eventually be integrated to code
generate constraints as well as structure.

Regards

Ed Willink

On 25/05/2012 09:11, Missing name Mising name wrote:
> Hi,
>
> i want to write a code generator for UML2 models and transform it by
> xtend2. Unfortunately i didn't find a good tutorial or configuration
> hints.
> My Question:
>
> How can i configure the mwe2 file for reading uml2 models, use uml
> profiles and of course transform it by xtend2.
>
> Anybody an idea where can i find a good tutorial or sample project?
>
> Thx
Previous Topic:[Acceleo] Bibliographic references
Next Topic:[Xpand] How to indicate progress while executing a template ?
Goto Forum:
  


Current Time: Mon Dec 22 12:53:20 GMT 2014

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

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