how to get the "absolute" classifier ID [message #624044] |
Tue, 24 July 2007 04:43 |
Eclipse User |
|
|
|
Originally posted by: firstname.name.gmail.com
Hello,
I would like to use the generic method
org.eclipse.uml2.uml.UMLFactory.eINSTANCE.create(EClass eClass) to create a UML
element.
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();
Property newProperty;
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.
--
F. Lagarde
|
|
|
Powered by
FUDForum. Page generated in 0.25842 seconds