Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Correct usage of EClass
Correct usage of EClass [message #903003] Tue, 21 August 2012 11:14 Go to next message
Florian Wartenberg is currently offline Florian Wartenberg
Messages: 25
Registered: July 2012
Junior Member
Hi,

I want to create a new State inside a Region and want to use region.createSubvertex(String arg0, EClass arg1). I am not able to figure out how to substitute the second argument correctly to create a State. Currently I am helping myself with an eClass of a different state but thats ugly.

thx

Florian
Re: Correct usage of EClass [message #903020 is a reply to message #903003] Tue, 21 August 2012 12:31 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4010
Registered: July 2009
Senior Member
Hi

I've no idea about this specific usage, but this looks very like a
polymorphic constructor so you might pass

UMLPackage.Literals.STATE

to specifiy the subvertex of a State.

Regards

Ed Willink


On 21/08/2012 16:14, Florian Wartenberg wrote:
> Hi,
>
> I want to create a new State inside a Region and want to use
> region.createSubvertex(String arg0, EClass arg1). I am not able to
> figure out how to substitute the second argument correctly to create a
> State. Currently I am helping myself with an eClass of a different
> state but thats ugly.
>
> thx
> Florian
Re: Correct usage of EClass [message #903052 is a reply to message #903003] Tue, 21 August 2012 14:29 Go to previous message
Florian Wartenberg is currently offline Florian Wartenberg
Messages: 25
Registered: July 2012
Junior Member
Works like a charm thank you so much!!!

regards

Florian
Previous Topic:Persons and Responsibilities
Next Topic:TimeObservation for transitions
Goto Forum:
  


Current Time: Tue Jul 29 15:08:30 EDT 2014

Powered by FUDForum. Page generated in 0.01820 seconds