|Re: [EEF] how to restrict available options for non containment references? [message #666104 is a reply to message #666064]
||Tue, 19 April 2011 07:18
| Goulwen Le Fur
Registered: July 2009
Nathalie is right for these options.
Just to complete, You can try EEF 0.9 which is more compliant with the
EMF.edit framework (so with your customisations). If it's not the case,
you can file a bug on Bugzilla, EEF *must* do at least all EMF.edit can
Goulwen Le Fur - firstname.lastname@example.org
Le 18/04/2011 22:48, Nathalie a écrit :
> I wrote a custom EEF Editor where I was able to do a lot of customization.
> When you mean "restrict available options", I am not sure I understand
> but for me there is two possibilities:
> 1 - You want to show some properties and hide others.
> For example, for an object O that has two properties a and b. You want
> the properties page to show only a and not b.
> Well, if yes you can only remove the properties you don't want to show
> from the .components model generated by the EEF infrastructure. You have
> to remove both the view and the component of the property from that model.
> If you need to define at runtime, given some semantic rules what to show
> and what to hide, then I don't know how to do it.
> 2 - You want to filter the values of a property
> This apply when you have a single valued property, and the user has to
> select from a list of object the value of that property. You can add a
> custom ViewerFilter through the "addBusinessFilterToYYY" methods. Your
> semantic rules will then go in your filter.
> I hope this helps.
Powered by FUDForum
. Page generated in 0.02556 seconds