Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Toolchain for source code generation from UML?
Toolchain for source code generation from UML? [message #557396] Tue, 07 September 2010 09:35 Go to next message
Juergen Weber is currently offline Juergen WeberFriend
Messages: 65
Registered: July 2009
Member
Hi, I am bit overwhelmed by the many Eclipse modeling projects.

What would I use to read in an (Enterprise Architect) UML model in XMI format and to generate code from it? What would be the tool chain?

Xpand, Acceleo or JET ?

Or can you read in an XMI to Ecore and use the StringTemplate Engine to generate code?

Thanks,
Juergen
Re: Toolchain for source code generation from UML? [message #557397 is a reply to message #557396] Tue, 07 September 2010 09:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hello Juergen,

afaik EA still does not support EMF based Eclipse UML2 but rather uses its own proprietary XMI dialect.

I know 2 possibilities to handle that. Both traget the MWE / Xpand familiy.

(1) using openArchitectureWare Classic (only available with oAW 4.3.1 that you still can get here http://oaw.itemis.de/openarchitectureware/language=de/660/do wnloads)
(2) using the UML2Exporter to get an Eclipse Compatible UML XMI from here: http://uml2ea.blogspot.com/

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 07 September 2010 09:53]

Report message to a moderator

Re: Toolchain for source code generation from UML? [message #557412 is a reply to message #557397] Tue, 07 September 2010 10:55 Go to previous messageGo to next message
Juergen Weber is currently offline Juergen WeberFriend
Messages: 65
Registered: July 2009
Member
OK, but given that you have an in-memory representation of XMI, the way to go would be Expand and not JET?

Thanks,
Juergen
Re: Toolchain for source code generation from UML? [message #557416 is a reply to message #557412] Tue, 07 September 2010 11:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

yes afaik it is for Xpand only.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Toolchain for source code generation from UML? [message #557974 is a reply to message #557396] Thu, 09 September 2010 16:20 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Does not really matter, since the component is just an MWE component that instantiatesan Eclipse UML2 metamodel instance. From that it can be processed by all of these frameworks. However, JET would always be my last choice, then Acceleo, and first Xpand. Xpand has the most natural way to handle UML models.

My 2 cents...

~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Toolchain for source code generation from UML? [message #558271 is a reply to message #557396] Fri, 10 September 2010 17:33 Go to previous messageGo to next message
Yannick Duchene (Hibou57) is currently offline Yannick Duchene (Hibou57)Friend
Messages: 50
Registered: September 2010
Location: Metz (France - Europe)
Member
Juergen Weber wrote on Tue, 07 September 2010 05:35
Hi, I am bit overwhelmed by the many Eclipse modeling projects.

What would I use to read in an (Enterprise Architect) UML model in XMI format and to generate code from it? What would be the tool chain?

Xpand, Acceleo or JET ?

I would recommend Acceleo, as it is based on MOF M2T (MOF Model to Text) standard language.

Using standard language helps reliability.

Note: TBH, Acceleo make use of non-standard, while still well designed, proprietary extensions.

Here is a link to the standard:
http://www.omg.org/spec/MOFM2T/1.0/
while you may still benefits doing a bit of research using your favorites search-engines.

P.S. If you use Acceleo, be sure to use the latest version 3, as prior version was not conforming to the MOF M2T standard.
http://www.acceleo.org

[Updated on: Fri, 10 September 2010 17:34]

Report message to a moderator

Re: Toolchain for source code generation from UML? [message #558474 is a reply to message #558271] Mon, 13 September 2010 07:51 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

I would just point out that the http://www.acceleo.org website is only for the old Acceleo (2.x), the new Acceleo (3.0) is here http://www.eclipse.org/acceleo/. And for questions about the new Acceleo, you should use this forum, not the one at acceleo.org.

Stephane Begaudeau, Obeo
Previous Topic:[xpand] name of UMLPrimitiveType not generated (=null)
Next Topic:[Acceleo 3] Calling MTL queries from java code
Goto Forum:
  


Current Time: Fri Mar 29 15:37:30 GMT 2024

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

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

Back to the top