Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » About ContextManager.contextChanged
About ContextManager.contextChanged [message #466382] Wed, 18 April 2007 03:05 Go to next message
Eclipse UserFriend
The code
public final void contextChanged(final ContextEvent contextEvent) {
if (contextEvent.isDefinedChanged()) {
final Context context = contextEvent.getContext();
final String contextId = context.getId();
final boolean contextIdAdded = context.isDefined();
if (contextIdAdded) {
definedHandleObjects.add(context);
} else {
definedHandleObjects.remove(context);
}
if (isListenerAttached()) {
fireContextManagerChanged(new ContextManagerEvent(this,
contextId, contextIdAdded, false, null));
}
}
}
Why when new ContextManagerEvent,the parameter activeContextsChanged is
false?
Re: About ContextManager.contextChanged [message #466474 is a reply to message #466382] Thu, 19 April 2007 10:52 Go to previous message
Eclipse UserFriend
cui zihui wrote:
> Why when new ContextManagerEvent,the parameter activeContextsChanged is
> false?

Right, defining a new context doesn't change the list of active
contexts. Activating a context does.

Later,
PW
Previous Topic:Key bindings to dialog controls?
Next Topic:ModalContext fork problems in application startup
Goto Forum:
  


Current Time: Fri Jul 04 23:52:26 EDT 2025

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

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

Back to the top