Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How can get all the enumeration literals using AQL for my select widget(create a specific Properties Views in Siruis obeo)
How can get all the enumeration literals using AQL for my select widget [message #1760927] Thu, 04 May 2017 12:01 Go to next message
Hayet Brabra is currently offline Hayet BrabraFriend
Messages: 2
Registered: May 2017
Junior Member
I'm actually creating my specific Properties Views using Siruis Obeo. Particularly I want to create a select widget that contains all enumeration literals. In fact, I have a class 'resource' with an attribute called type and this type is an enumeration. In the properties view I want to display this Type through a select widget. So I am wondering how can get all the enumeration literals using AQL. I tried by this aql expression("aql:self.eResource().getContents().eAllContents(myModel::types)) but it does not work. I have uploaded a picture of my current Settings,
  • Attachment: type.PNG
    (Size: 15.45KB, Downloaded 211 times)
Re: How can get all the enumeration literals using AQL for my select widget [message #1760948 is a reply to message #1760927] Thu, 04 May 2017 14:14 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

This really sounds like a question for the Platform forum, which is more aimed at plug-in developers. https://www.eclipse.org/forums/eclipse.platform

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: How can get all the enumeration literals using AQL for my select widget [message #1761018 is a reply to message #1760948] Fri, 05 May 2017 10:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
Actually it doesn't like a question about Sirius. Their community page suggests which forum to use: https://www.eclipse.org/sirius/community.html

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How can get all the enumeration literals using AQL for my select widget [message #1787522 is a reply to message #1761018] Mon, 28 May 2018 07:53 Go to previous message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 31
Registered: May 2018
Member
Hii Nitin

You can give aql:myModel::EnumName.eLiterals
In place of EnumName you have to give your enum name and give this expression in candidate expression and in candidate display expression you can give aql:candidate.name
Hope this will help
Regards
Previous Topic:SWT- ScrolledComposite Scrollbar issue
Next Topic:Hello All (And a question)
Goto Forum:
  


Current Time: Tue Mar 19 08:42:48 GMT 2024

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

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

Back to the top