|
Re: Limit selection of candidates for association [message #1244441 is a reply to message #1244400] |
Wed, 12 February 2014 10:47 |
|
Le 12/02/2014 10:27, Wilbert Alberts a écrit :
> Hi,
Hi.
> In short: are there ways to limit the selection of an element from a
> group of alternatives?
This is not a Sirius-specific question (the general EMF forum would be a
better place), but I believe what you need is to provide your own
ItemPropertyDescriptor and override the getChoiceOfValues() method. The
default implementation finds all type-compatible values in the whole
ResourceSet (see ItemPropertyDescriptor.getReachableObjectsOfType()),
but you can filter that to only return the elements matching some
additional criterion.
Regards,
Pierre-Charles David
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02207 seconds