本文整理匯總了Java中org.eclipse.core.commands.contexts.ContextManagerEvent類的典型用法代碼示例。如果您正苦於以下問題:Java ContextManagerEvent類的具體用法?Java ContextManagerEvent怎麽用?Java ContextManagerEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ContextManagerEvent類屬於org.eclipse.core.commands.contexts包,在下文中一共展示了ContextManagerEvent類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: contextManagerChanged
import org.eclipse.core.commands.contexts.ContextManagerEvent; //導入依賴的package包/類
public void contextManagerChanged(ContextManagerEvent contextManagerEvent)
{
setEnabled(contextManagerEvent.getContextManager().getActiveContextIds()
.contains(ScriptingUIPlugin.SCRIPTING_CONTEXT_ID));
}
示例2: contextManagerChanged
import org.eclipse.core.commands.contexts.ContextManagerEvent; //導入依賴的package包/類
/**
* <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();
}
}