Convert to Ecore Model [message #828362] |
Sat, 24 March 2012 13:33  |
Eclipse User |
|
|
|
Hi,
I want to convert a UML Model to an Ecore Model. I can see the option in the menu UML Editor -> Convert to -> Ecore Model, but is not enabled.
And I also want to convert an Ecore Model to UML Model; but in this case I can't see the option Sample Reflective option -> Convert to UML Model.
I found this "You will need the org.eclipse.uml2.examples plug-ins to see those menu options."
I have installed Eclipse Indigo, UML2 Extender SDK and UML2 Tools. I check my installation and I can find these plug-ins:
org.eclipse.uml2.examples_3.0.0.v201005031530.jar
org.eclipse.uml2.examples.uml.ui_3.0.100.v201008191510.jar
org.eclipse.uml2.examples.uml.ui.source_3.0.100.v201008191510.jar
org.eclipse.uml2.examples.source_3.0.0.v201005031530.jar
What can I do?
Thanks for your help,
Ramón.
|
|
|
|
|
|
|
|
Re: Convert to Ecore Model [message #885817 is a reply to message #885734] |
Wed, 13 June 2012 12:42  |
Eclipse User |
|
|
|
Hi Max,
Take a look at
org.eclipse.uml2.uml.util.UMLUtil.convertToEcore(Package, Map<String, String>)
It takes a package and a Map of options (see
UMLUtil.UML2EcoreConverter.OPTION__* javadoc for descriptions) and returns
the converted EPackage(s).
There's also a convertFromEcore(...) for the reverse.
Regards,
Carsten
On 13.06.2012 16:00, max power wrote:
> Is there a way to convert UML to ecore programmatically?
>
> Thanks in advance!
|
|
|
Powered by
FUDForum. Page generated in 0.05988 seconds