|How to write Eclipse UML2 XMI [message #1053740]
||Tue, 07 May 2013 12:57
| André Ribeiro
Registered: January 2013
I'm working on a Enterprise Architect (EA) plug-in which aims to convert a model, created in EA using my custom UML Profile, to the XMI format supported by Eclipse (the .uml file created, for instance, when using Papyrus).
Can someone provide me some hints how to do this?
Where can I find the metamodel (probably XSD) of the XMI generated by Papyrus/Eclipse?
|Re: How to write Eclipse UML2 XMI [message #1053799 is a reply to message #1053740]
||Tue, 07 May 2013 15:52
| Ed Willink
Registered: July 2009
If you are using MDT/UML2 4.0.0 that supports UML 2.4.1, there are
compatibility modes that can read older UMLs so you should not need to
do anything. Take care that you are solving the right problem before
indulging in any significant coding activity.
From my experience as the early MDT/UML2 'beta tester', most of the
problems take half a day to get to grips with and then only require a
couple of lines of code to fix. Most of this pain has been dealt with by
the new UML initilaization routines, so it could just work.
The fundamental test before trying out advanced tooling, is to see
whether your model is acceptable to the Sample Ecore Editor (and for
UML, the UML Model Editor).
On 07/05/2013 13:57, André Ribeiro wrote:
> Hello everyone,
> I'm working on a Enterprise Architect (EA) plug-in which aims to
> convert a model, created in EA using my custom UML Profile, to the XMI
> format supported by Eclipse (the .uml file created, for instance, when
> using Papyrus).
> Can someone provide me some hints how to do this?
> Where can I find the metamodel (probably XSD) of the XMI generated by
> Many thanks.
|Re: How to write Eclipse UML2 XMI [message #1057863 is a reply to message #1053811]
||Thu, 09 May 2013 12:00
| Ed Willink
Registered: July 2009
I'm not sure what to recommend.
It often seems easier and more fun to write your own code than tweak
someone else's. But that way leads to a proprietary maintenance difficulty.
Better to contribute to the Eclipse community, either by writing the
code yourself of by getting your company to fund it.
I suspect that EA is using UML 2.3 that falls in the gap between old and
new MDT/UML2 support, but since it is in the middle, all the
functionality should be there. It might just be a matter of cloning the
2.2 reader and putting in some of the 2.4 functionality.
I'm also aware that the lack of conformance testing means that vendors
have subtly different XMI expositions, so there may be difficulties.
However a few users have had EA issues, so providing direct EA import
capabilities in Eclipse seems desirable. Please consider producing
something that other can benefit from. This is much more likely to be an
alternative UML loader that gets used transparently than a new tool that
users have to struggle to invoke.
On 07/05/2013 17:43, André Ribeiro wrote:
> Hi Ed,
> Thanks for answering.
> My goal is basically to use Enterprise Architect to model diagrams
> using my UML Profile and then process the model using EVL and Acceleo.
> The problem is that the XMI exported is not automatically compatible
> with Eclipse, namely some namespaces are different, the hrefs to the
> types are different and the position of the stereotypes tags also differ.
> I've implemented a small program that performs some of the
> aforementioned changes and after that I'm able to open the file using
> the Eclipse's UML editor.
> Now, I would like to know what's best: generating the EA XMI and then
> process it or somehow (I don't know why) generating immediatly a XMI
> compatible with EMF?
> Thanks once again.
Powered by FUDForum
. Page generated in 0.02764 seconds