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


Current Time: Mon Sep 25 13:27:09 GMT 2017

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

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