aql:eAllContents(packageName::eClassName) [message #1744079] |
Thu, 22 September 2016 04:58  |
Eclipse User |
|
|
|
Hello,
when I try any aql-command that involves at any place:
eAllContents(mypackagename::EClassNameToLookFor)
It works, when I try the command out in the Sirius Interpreter letting it run over my MyTry.projectname file.
But it does not work, when I insert in in the desired place in my projectname.odesign file.
Why? Is it not possible?
I just want to have a collection of all existing objects of a certain class.
Cheers
Emil
[Updated on: Thu, 22 September 2016 04:59] by Moderator
|
|
|
|
|
|
|
|
|
Re: aql:eAllContents(packageName::eClassName) [message #1745202 is a reply to message #1745185] |
Thu, 06 October 2016 08:39  |
Eclipse User |
|
|
|
Hello Pierre-Charles,
thank you for your fast reply.
So, am I right, that the only option to get my MyEEnumType, is to insert in my Cadidates Expression something like:
aql:self.eClass().eResource().getContents().eAllContents(ecore::EEnum)->select(s|s.name.equals('MyEEnumTypeName')).eContents()
So I have to go over the name and can not call directly my desired MyEEnumType?
I mean, the above stated query works.
Cheers
Emil
|
|
|
Powered by
FUDForum. Page generated in 0.05878 seconds