|Best way to listen to context activation/deactivation [message #337069]
||Sat, 25 July 2009 20:32
Registered: July 2009
Hello! I have defined a number of 'org.eclipse.ui.contexts' and wish to |
have parts of my application respond to when these contexts change from
active and inactive states.
The best I can come up with so far is adding an IContextManagerListener to
IContextService via addContextManagerListener, and then deducing which
context have changed through the ContextManagerEvent (specifically
ContextManagerEvent .getContextManager.getActiveContextIds() and
Is this the best way to do this? Seems like things could get a little
inefficient especially when trying to deduce which context has been
Thanks for any help you can provide!
Powered by FUDForum
. Page generated in 0.07328 seconds