Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Is it possible to develop a XMI to Java Code converter plugin?(In what way it is possible to develop a plugin which converts XMI to Java Code? Any suggestion?)
Is it possible to develop a XMI to Java Code converter plugin? [message #1736244] Mon, 27 June 2016 19:46 Go to next message
Jefferson Silva is currently offline Jefferson SilvaFriend
Messages: 1
Registered: June 2016
Junior Member
Hi all,

I need to develop a way of converting diagrams designed in Papyrus into Java Code in an automated manner. In other words I need to turn the task of converting the XMI generated to a specific Domain Specific Language (DSL) written in Java Code in a one-click task.

It is a very begginer question but I don't have any experience on Eclipse plugin development and the documentation available is not begginer friendly. Could someone suggest me a direction on how to do this? Developing a plugin couldn't even be the only way of doing it, but I can't make any conclusion just Reading the 'Developer Guide' available.

Thanks in advance.
Re: Is it possible to develop a XMI to Java Code converter plugin? [message #1736395 is a reply to message #1736244] Wed, 29 June 2016 07:28 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi,

There is already a java generator present in the "Papyrus Designer" component.

Did you tried it ?
Re: Is it possible to develop a XMI to Java Code converter plugin? [message #1736626 is a reply to message #1736244] Thu, 30 June 2016 16:10 Go to previous message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 258
Registered: May 2015
Location: Germany
Senior Member
Hi,

if the Java generator mentioned by Benoit does not fit your needs, you can build custom generators with Acceleo (http://www.eclipse.org/acceleo) or Xpand (https://projects.eclipse.org/projects/modeling.m2t.xpand).

Both alternatives may generate any textual format (including Java source code). And both are based on XMI.

Acceleo is an OMG MOF Model to Text Transformation Language (http://www.omg.org/spec/MOFM2T) implementation.

Xpand is a statically-typed template language based on EMF (http://www.eclipse.org/modeling/emf/) the XMI implementation of Eclipse.

/Carsten

[Updated on: Thu, 30 June 2016 16:51]

Report message to a moderator

Previous Topic:Use of filters in NewChild/CreationMenuModels?
Next Topic:How to use the Container Configuration in an ElementTypeSetConfiguration?
Goto Forum:
  


Current Time: Tue Aug 04 03:30:03 GMT 2020

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

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

Back to the top