|
Re: Sirius + EEF - the simplest way to customize property behaviour [message #1778800 is a reply to message #1778796] |
Thu, 21 December 2017 15:21 |
|
Hi,
The documentation you point to correspond to the old version of EEF (up to version 1.5), which relied on static code generation. If indeed you're using this version, note that it is deprecated (it still works, but is not actively developed anymore). I'm no expert on that older version but I'm afraid there's no probably no other way that the one documented there.
The new version of EEF (currently at 2.0) is a completely new code base which uses a more Sirius-like approach with no code generation at all. It has actually been designed specifically to integrate well with Sirius (although it can also be used separately) and is the recommended version to use for new developments. You can find more documentation about how to use it in Sirius at https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html. The specific problem you mention about showing a property or not depending on the model state is directly supported, for example by specifying an appropriate Precondition Expression on your widget.
Regards,
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Sirius + EEF - the simplest way to customize property behaviour [message #1778831 is a reply to message #1778827] |
Fri, 22 December 2017 10:13 |
|
Pavel Bogdanov wrote on Fri, 22 December 2017 10:06
I am restricted of using 1.5 version of EEF.
Are you talking about changes in *.odesign? Or I have to create my custom widget? If I use standart widget, do I have any possibility to create Precondition Expression for it?
EEF 1.5 is completely independent on Sirius and is not configured through the odesign files. Configuration from these files and the "Precondition Expression" I mentioned are only available in EEF 2.0. If you're stuck with 1.5, I'm afraid regenerating may be the only way to handle your requirement.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.01936 seconds