|Convert to Ecore Model [message #828362]
||Sat, 24 March 2012 13:33
| Arnedo Ramon
Registered: March 2012
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:
What can I do?
Thanks for your help,
|Re: Convert to Ecore Model [message #885817 is a reply to message #885734]
||Wed, 13 June 2012 12:42
| Carsten Reckord
Registered: June 2012
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.
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.11769 seconds