|EMF - How to restrict values of non-containment references? [message #1381082]
||Sun, 25 May 2014 07:21
| Matthias Freund
Registered: May 2014
in my metamodel, I have defined an EClass with a non-containment reference. If I instantiate a model and use the "Properties" view to set a value for this reference, the drop-down list displays all existing instances of the type of the reference as possible values.
Now, I want to restrict the values shown by an additional algorithm. Where can I implement this algorithm? As far as I understand EMF, this should be done in the "edit" part of the generated code but I cannot seem to find the right place. Which is the method that is called by the "Properties" view to retrieve all possible matches?
Or is there any possibility to implement such additional constraints for reference values in the "model" part of the generated code?
Thanks in advance!
Powered by FUDForum
. Page generated in 0.01984 seconds