Skip to main content



      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 04:11 Go to next message
Eclipse UserFriend
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 04:37 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 06:14:09 EDT 2025

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

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

Back to the top