Skip to main content



      Home
Home » Eclipse Projects » Sirius » list of possible values as parameter
list of possible values as parameter [message #1820822] Wed, 29 January 2020 11:34 Go to next message
Eclipse UserFriend
Hello,

I'm very new to sirius and I was wondering if it was possible to restrict the possible values of an object's parameter by displaying a list of the possible values to the user. So the parameter will have the value the user clicked on in the list.

Thanks in advance,
Thibo
Re: list of possible values as parameter [message #1820994 is a reply to message #1820822] Tue, 04 February 2020 04:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I would need more context about what you are trying to and and which part of Sirius you are using. Out of the blue, I have no idea what "restrict the possible values of an object's parameter" means. Is it on a diagram? In the properties view? What's an "object parameter" in your context?

Regards,
Pierre-Charles
Re: list of possible values as parameter [message #1822536 is a reply to message #1820822] Mon, 09 March 2020 10:53 Go to previous message
Eclipse UserFriend
You can use ECORE:
1. define Enumeration (as standalone classifier). You can add this to the metamodel.
2. Add literals to reflect possible values
3. Add the attribute to the desired class with its EType being the aformentioned Enumeration.
Previous Topic:[ANN] Sirius 6.1.4
Next Topic:Elements not showing in the representation
Goto Forum:
  


Current Time: Mon Jun 23 21:49:20 EDT 2025

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

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

Back to the top