Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » About ContextManager.contextChanged
About ContextManager.contextChanged [message #466382] Wed, 18 April 2007 07:05 Go to next message
czhcc is currently offline czhccFriend
Messages: 11
Registered: July 2009
Junior Member
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 14:52 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 Apr 26 07:20:56 GMT 2024

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

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

Back to the top