Can Sapphire be used with EMF models? [message #1462194] |
Wed, 05 November 2014 05:04  |
Eclipse User |
|
|
|
Hello!
Currently, I'm evaluating EMFForms for building UIs for instances of EMF models.
In case EMFForms doesn't allow to customize a particular aspect of the UI (UIs generated by EMFForms are less pretty than those generated by Sapphire), I'd like to use Sapphire for the UI part (for displaying values of an EMF model instance and for automatically saving the values entered by the user in that model).
Questions:
1) Is it possible?
2) What disadvantages does this approach have?
Thanks in advance
Dmitri
|
|
|
|
|
Re: Can Sapphire be used with EMF models? [message #1464461 is a reply to message #1464182] |
Fri, 07 November 2014 10:33   |
Eclipse User |
|
|
|
When using Sapphire, the first step is to write a Sapphire model. This is true whether Sapphire is used in a new area or is replacing an existing solution. The rich UI experience and the rapid UI definition process is made possible by the tight coupling of the UI to one specific modeling technology. If you compare Sapphire to other UI building technologies that are able to handle an arbitrary modeling approach, such as JFace DataBindings, you will find that the developer has to write extensive wiring instructions for every property as the cost of this flexibility. Consider the wiring that's necessary for a fairly basic property editor... data, default value, possible values, validation, help, etc. With Sapphire, the developer only specifies the property name and Sapphire UI is able to automatically do all of the wiring.
|
|
|
|
Re: Can Sapphire be used with EMF models? [message #1469562 is a reply to message #1468131] |
Tue, 11 November 2014 13:16  |
Eclipse User |
|
|
|
A Sapphire model can be used completely outside of a UI context or a UI thread. As compared to other modeling frameworks, a Sapphire model is tuned for user experience as opposed to raw batch performance, but unless you are loading multi-MB models or need to serve a busy web site, this is unlikely to be an issue.
|
|
|
Powered by
FUDForum. Page generated in 0.03708 seconds