Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » xmi:id get lost when saving Resource
xmi:id get lost when saving Resource [message #956237] Wed, 24 October 2012 06:43 Go to previous message
Jens Bürger is currently offline Jens Bürger
Messages: 9
Registered: October 2012
Junior Member
Hello everyone,

I am using the EMF project http://www.eclipse.org/modeling/emft/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:
options.put(XMIResource.OPTION_SCHEMA_LOCATION,
Boolean.TRUE); Resource resource2 =
resourceSet.createResource(URI.createFileURI("seclinks_corrected.uml"));
resource2.getContents().addAll(graph.getRoots());
try {
resource2.save(options);}

where
org.eclipse.emf.ecore.resource.impl
is used as ResourceImplementation.
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 options.

I already asked the EMF-people and Ed Merks suggested:
"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"

So here I am :)

Thanks in advance,
Jens
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to find out that two Interaction Fragment in a Sequence Diagram occur at the same time
Next Topic:loading .uml / .xmi files in eclipse
Goto Forum:
  


Current Time: Thu May 23 05:31:39 EDT 2013

Powered by FUDForum. Page generated in 0.21209 seconds