Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Getting EReference name from emf model and save it in a variable (Getting EReference name from emf model and save it in a variable )
Getting EReference name from emf model and save it in a variable [message #1781848] Tue, 13 February 2018 21:02 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 181
Registered: October 2014
Senior Member
Hi,
In the attached minimal example i am querying emf model (Lqn) and then getting EReference by using getEReferences() and then saved the name of EReference in a variable then used it to add an element to that containment EReference .

Is there any trick to do that without using the specific name of the EReference ??


Thanks,
Taghreed
Re: Getting EReference name from emf model and save it in a variable [message #1781863 is a reply to message #1781848] Wed, 14 February 2018 00:22 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1610
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

Off the top of my head, eObject.eGet(VEreference).add(movedTask) should do the trick.

Cheers,
Dimitris
Re: Getting EReference name from emf model and save it in a variable [message #1781909 is a reply to message #1781863] Wed, 14 February 2018 15:05 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 181
Registered: October 2014
Senior Member
Thanks yes it did:)
Previous Topic:Serializing back parsed EOL code
Next Topic:Execute operation in java code
Goto Forum:
  


Current Time: Wed Nov 14 14:08:23 GMT 2018

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

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

Back to the top