Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to get the "absolute" classifier ID
how to get the "absolute" classifier ID [message #624044] Tue, 24 July 2007 08:43
Eclipse UserFriend
Originally posted by:


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();
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
Previous Topic:Class diagram/stereotypes problem
Next Topic:how to get the "absolute" classifier ID
Goto Forum:

Current Time: Sat Apr 04 07:21:03 GMT 2020

Powered by FUDForum. Page generated in 0.01418 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top