Java 类org.eclipse.core.commands.contexts.ContextManagerEvent 实例源码

项目:APICloud-Studio    文件:KeybindingsManager.java   
public void contextManagerChanged(ContextManagerEvent contextManagerEvent)
{
    setEnabled(contextManagerEvent.getContextManager().getActiveContextIds()
            .contains(ScriptingUIPlugin.SCRIPTING_CONTEXT_ID));
}
项目:gef-gwt    文件:BindingManager.java   
/**
 * <p>
 * Notifies this manager that the context manager has changed. This method
 * is intended for internal use only.
 * </p>
 * <p>
 * This method completes in <code>O(1)</code>.
 * </p>
 */
public final void contextManagerChanged(
        final ContextManagerEvent contextManagerEvent) {
    if (contextManagerEvent.isActiveContextsChanged()) {
        // clearSolution();
        recomputeBindings();
    }
}