Skip to main content


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 15:14 Go to next message
Florian Wartenberg is currently offline Florian WartenbergFriend
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 16:31 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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 18:29 Go to previous message
Florian Wartenberg is currently offline Florian WartenbergFriend
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: Wed May 08 13:16:59 GMT 2024

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

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

Back to the top