|Re: Best way to listen to eclipse Notification [message #1118273 is a reply to message #1118236]
||Fri, 27 September 2013 08:30
| Ed Merks
Registered: July 2009
On 27/09/2013 9:40 AM, Jürgen rey wrote:
> Hi Ed,
> yes, I want to listen to model state changes for a UI element!
Is the UI element an EMF model?
> .. and yes: the state change should immediately propagated to a
> preferences store, where all kinds of prefs are collected at first.
> (the preference manager is responsible for further handling)
> The panel is normally part of an editor or a view, it is currently NOT
> part of any modal dialog, but it could be in the future. (which
> implications does this have?)
It's a question of how often you want such things saved. If the user
doesn't save the editor, do they still want this preference state to be
> It would be very nice, if my preference manager only had imports of
> the Notification(Impl) class. This way I wouldn't have any
> dependencies to custom (presentation) model classes!
But it sounds like the preference manager is also responsible for
reading the state and making it available via the state of a model...
> Can I do this via extension points, which establish corresponding
It's not so clear exactly what you're doing. There is no EMF extension
point for adding adapters. There's an extension point contributing an
item provider adapter factory for your package, but it sounds unrelated
to what you're describing.
> In Java code or per xml declarations?
> Sorry for these detailed questions, but I didn't find appropriate
> documentations or eclipse recipes for (Notification) handling.
I'm not sure if you aren't confusing EMF's notification with other
flavors of notification provided by Eclipse.
> best regards
Powered by FUDForum
. Page generated in 0.29930 seconds