Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to listen for an activation of a successor IEclipseContext?
How to listen for an activation of a successor IEclipseContext? [message #990262] Tue, 11 December 2012 16:16 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 254
Registered: July 2012
Senior Member
I would like to bind the UI to some Object, which will be stored in the context-hierarchy below of the UI's context.

Then I would like to exchange the active content below in the hierarchy and by doing that enforce the UI to update all values, which have changed, as the result of exchaning the context.

Is there a way to listen for activation of EclipseContext's below, in the context hierarchy?
Re: How to listen for an activation of a successor IEclipseContext? [message #990265 is a reply to message #990262] Tue, 11 December 2012 16:22 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5332
Registered: July 2009
Senior Member
Why not simply annotating the value with @Active then whenever the
active subcontext relative to the context that was used to create the
object changes you get the value reinjected.

Tom

Am 11.12.12 17:16, schrieb Alex Kipling:
> I would like to bind the UI to some Object, which will be stored in the
> context-hierarchy below of the UI's context.
>
> Then I would like to exchange the active content below in the hierarchy
> and by doing that enforce the UI to update all values, which have
> changed, as the result of exchaning the context.
>
> Is there a way to listen for activation of EclipseContext's below, in
> the context hierarchy?
Re: How to listen for an activation of a successor IEclipseContext? [message #990272 is a reply to message #990265] Tue, 11 December 2012 16:40 Go to previous message
Alex Kipling is currently offline Alex Kipling
Messages: 254
Registered: July 2012
Senior Member
Tom - I luv you!
Previous Topic:HandledMenuItem/Handled Tool Item with parameter disables KeyBindings
Next Topic:Passing final static variables to @Named annotation not possible?
Goto Forum:
  


Current Time: Wed Sep 24 04:34:12 GMT 2014

Powered by FUDForum. Page generated in 0.01661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software