Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » get reference name not value (get reference name not value for UML Eclass name Control Flow)
get reference name not value [message #1793619] Sat, 11 August 2018 22:22 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
Hello,
I am using EOL to query UML model. I want to know the method that can be used to get the name of the reference of EClass Control flow
for example Control Flow EClass has Target as reference so I want to get the name of that reference which is "Target" not the value of the reference
I tried to use getTarget( ) but it returns the value of the reference not the name of the reference.

Is there any trick to do that.

Thanks,
Taghreed.

[Updated on: Sat, 11 August 2018 22:23]

Report message to a moderator

Re: get reference name not value [message #1793693 is a reply to message #1793619] Tue, 14 August 2018 08:07 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

You could use ".eClass()" method to navigate to the EClass of the model element and then access its references using ".eReferences" [1].

Cheers,
Dimitris

[1] http://download.eclipse.org/modeling/emf/emf/javadoc/2.4.3/org/eclipse/emf/ecore/EClass.html
Re: get reference name not value [message #1793714 is a reply to message #1793693] Tue, 14 August 2018 13:43 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
Thanks very much Dimitris. It worked well.
Previous Topic:Cannot find Java class from standalone EOL plugin
Next Topic:Configure EOL launch (EMF models) from java
Goto Forum:
  


Current Time: Thu Apr 25 16:01:07 GMT 2024

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

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

Back to the top