|xmi:id get lost when saving Resource [message #949729]
||Fri, 19 October 2012 04:24
| Jens Bürger
Registered: October 2012
I am using the EMF project Henshin.
Currently I am using Henshin to do a model transformation on a UML model.
The transformed model is contained in an EGraph and saved like this:
Resource resource2 = resourceSet.createResource(URI.createFileURI("seclinks_corrected.uml"));
What I miss in the saved model are all xmi:id-attributes.
I already had a look at further options in XMIResource but didn't find an matching option.
Thanks in advance,
|Re: xmi:id get lost when saving Resource [message #953485 is a reply to message #953471]
||Mon, 22 October 2012 05:27
| Ed Merks
Registered: July 2009
On 22/10/2012 11:15 AM, Jens Bürger wrote:
> Am 19.10.2012 17:16, schrieb Ed Merks:
>> Is this running stand alone in an Eclipse application?
> I'm not 100% sure what you mean by this. The code is part of an
> Eclipse plug-in project. It has a main-method and run via the
> "Run As -> Java Application"-command.
So you're running it stand alone. No plugin.xml registrations will kick in.
>> What resource
>> implementation is resource2?
> It's an implementation of
No, a resource is not a resource set.
>> I.e., is it's UML2's specialized resource
> Apparently not :)
So you need to be sure to register the necessary UML2 things. They have
some UMLUtil thingy that you can use to initialize a resource set. Ask
questions about UML2 on eclipse.modeling.mdt.uml2.
Powered by FUDForum
. Page generated in 0.01915 seconds