Skip to main content



      Home
Home » Eclipse Projects » Sirius » [PropertiesView] Has anybody a working example for the select option in the new Properties View?
icon1.gif  [PropertiesView] Has anybody a working example for the select option in the new Properties View? [message #1735975] Fri, 24 June 2016 03:37 Go to next message
Eclipse UserFriend
I'm currently experimenting with the new PropertiesView. But I can't create a Select-Property, it never shows any Elements.

Did anybody have success with this and can share his/her properties for the Select element?

I have uploaded a picture of my current Settings, in case it is just a dump mistake.
  • Attachment: prop.PNG
    (Size: 11.58KB, Downloaded 159 times)
Re: [PropertiesView] Has anybody a working example for the select option in the new Properties View? [message #1736047 is a reply to message #1735975] Fri, 24 June 2016 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Le 24/06/2016 14:28, Michael Janssen a écrit :
> I'm currently experimenting with the new PropertiesView. But I can't create a Select-Property, it never shows any Elements.
>
> Did anybody have success with this and can share his/her properties for the Select element?
>
> I have uploaded a picture of my current Settings, in case it is just a dump mistake.
>

I don't know your metamodel, but the Candidates Expression
"aql:topology::Topology.blockTypes" seems wrong. Even syntactically, it
seems to try to access a feature or call a service named "blockTypes" on
a type from the metamodel.

Could it be simply aql:self.blockTypes ?

The rest of your configuration look fine (the "Is Enabled Expression"
can be left blank if it will always return true; that's the default value).

--
Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [PropertiesView] Has anybody a working example for the select option in the new Properties View? [message #1736111 is a reply to message #1735975] Sun, 26 June 2016 12:05 Go to previous messageGo to next message
Eclipse UserFriend
On 2016-06-24 12:28:08 +0000, Michael Janssen said:

> Did anybody have success with this and can share his/her properties for
> the Select element?

I have created a Radio box (group), which should be similar. I am
guessing you want to show the literals of an enum?

In the Candidates Expression I create a sequence explicitly including
all the literals I want to show: aql:Sequence{ico::PlaceKind::SIMPLE}.
Note the use of :: between package, enum and literal names.

In the Candidate Display Expression I needed to call toString() like
this: aql:candidate.toString()
--
Hallvard Trætteberg (hal@xxxxxxxx.no)
Associate Professor, IS group, Dept. of Computer and Information
Science at the
Norwegian Univ. of Science and Technology
Re: [PropertiesView] Has anybody a working example for the select option in the new Properties View? [message #1736173 is a reply to message #1736047] Mon, 27 June 2016 05:35 Go to previous message
Eclipse UserFriend
Thanks, that helped. I didn't realize that I have the self Statement.
I uploaded the corrected Version here, in case anybody whats to see the solution. I'm using the ancestors() option because the blockTypes are at the root Element.
Previous Topic:Programmatically create nodes
Next Topic:[Properties view] Use Java services in properties view (to get input from the user)
Goto Forum:
  


Current Time: Tue Mar 25 03:08:44 EDT 2025

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

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

Back to the top