EMF Providers dynamically [message #1047537] |
Tue, 23 April 2013 06:52  |
Eclipse User |
|
|
|
Hi,
I have an EMF model which is used in a TreeViewer. On right click on tree, by default EMF provides the list of possible children. I want to modify this child list (show only few children) based on some conditions dynamically. Similarly the property descriptors list also need to be modified. What is the best possible way to achieve this?
Dynamic behavior is because the conditions are added based on the user inputs.
Thanks.
Dhanya
|
|
|
|
|
|
|
Re: EMF Providers dynamically [message #1048225 is a reply to message #1048175] |
Wed, 24 April 2013 03:33  |
Eclipse User |
|
|
|
Dhanya,
Yes, you can specialize the property descriptor's getChoiceOfValues.
On 24/04/2013 8:08 AM, Dhanya M wrote:
> Thanks.
>
> Also is there a possibility to restrict the enumerators values in
> Properties view?
> Eg: If I have an Enumerator with values A,B,C,D and I want to show
> only A and B based on some conditions in the properties view, is it
> possible?
|
|
|
Powered by
FUDForum. Page generated in 0.04059 seconds