Skip to main content



      Home
Home » Eclipse Projects » Sirius » Display enumeration options individually with ability to enable/disable them?
Display enumeration options individually with ability to enable/disable them? [message #1832692] Wed, 23 September 2020 07:50 Go to next message
Eclipse UserFriend
So I have a class A with attribute 'Selection' which is of an enumeration type. I want to be able to list each literal of the enumeration, and have the user indicate whether each one should be active or not.

Currently I have a solution that lists the currently selected literals as a single array, so that's probably no use posting.
Re: Display enumeration options individually with ability to enable/disable them? [message #1832756 is a reply to message #1832692] Thu, 24 September 2020 09:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello Max,

Could you be more specific? With wich Sirius widget do you want do this? Could you be more specific? With wich Sirius widget do you want do this?

Thanks?

Regards,
Re: Display enumeration options individually with ability to enable/disable them? [message #1832870 is a reply to message #1832756] Mon, 28 September 2020 06:41 Go to previous message
Eclipse UserFriend
Julien Dupont wrote on Thu, 24 September 2020 13:11
Hello Max,

Could you be more specific? With wich Sirius widget do you want do this? Could you be more specific? With wich Sirius widget do you want do this?

Thanks?

Regards,


Hi Julien,

I am doing this in a diagram representation. I have a class lets call it Block, with a 2 attributes, lets call them Name and Selection.

Selection is of type BlockSelection which is an enumeration, lets say with values v1, v2, v3, v4.

Any number and combination of the values from BlockSelection can be selected so i'd like to (if possible) display them all with a conditional style indicating whether theyre selected yet or not.

I was thinking that id have a container displaying the Block class, then inside that have a container with a node inside to display the Name, then another container below that to display each possible value of the enumeration.

Excuse the crude diagram but something like below.

https://i.imgur.com/vDLWtnM.jpeg
Previous Topic:Sirius Web and XText
Next Topic:Trying to define Relation Based Edges
Goto Forum:
  


Current Time: Mon Jun 23 21:58:15 EDT 2025

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

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

Back to the top