|how to get the "absolute" classifier ID [message #624044]
||Tue, 24 July 2007 08:43
Originally posted by: firstname.name.gmail.com|
I would like to use the generic method
org.eclipse.uml2.uml.UMLFactory.eINSTANCE.create(EClass eClass) to create a UML
Let's say that I have a property element, and then that I would like to
create another property.
I did something like that
Property myProperty = getAProperty();
newProperty = UMLFactory.eINSTANCE.create(myProperty.eClass())
but it fails.
The create method looks at the getClassifierID(). It returns 36, but the
eUMLPackage.PROPERTY is 46
I guess that has something to do with the "relative" id, but I am lost.
Powered by FUDForum
. Page generated in 0.01418 seconds