| [news.eclipse.modeling.mdt.uml2.uml] Re: Getting the UUID of a deleted model element |
|
Eric, To preserve UUIDs for objects removed from a resource and subsequently added to a different one, XMLResourceImpl has /**You can see how they are used in attachedHelper and detachedHelper. It's possible to access this protected static field from a derived XMLResourceImpl... Eric wrote: Hello, I need to get the unique ID (UUID or XMI ID) of model element, when it is deleted. I have a listener that is called when a model element is deleted. I tried using GMFResource.getSavedID(), and ((XMLResource) element.eResource()) however, they are both returning null. Is there any other way to get the UUID after the deletion of model element? Thank you in advance for your help. |