Package org.eclipse.ui.internal
Class AbstractEvaluationHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ui.internal.AbstractEnabledHandler
org.eclipse.ui.internal.AbstractEvaluationHandler
- Direct Known Subclasses:
ActivateEditorHandler
,CloseAllHandler
,CloseEditorHandler
,CloseOthersHandler
,ShowPartPaneMenuHandler
,ShowViewMenuHandler
This internal class serves as a foundation for any handler that would like
its enabled state controlled by core expressions and the IEvaluationService.
- Since:
- 3.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
The default implementation does nothing.protected abstract Expression
protected IEvaluationService
protected void
Methods inherited from class org.eclipse.ui.internal.AbstractEnabledHandler
isEnabled, setEnabled
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, fireHandlerChanged, hasListeners, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.commands.IHandler
execute, getHandlerLabel
-
Constructor Details
-
AbstractEvaluationHandler
public AbstractEvaluationHandler()
-
-
Method Details
-
getEvaluationService
-
registerEnablement
protected void registerEnablement() -
getEnabledWhenExpression
-
dispose
public void dispose()Description copied from class:AbstractHandler
The default implementation does nothing. Subclasses who attach listeners to other objects are encouraged to detach them in this method.- Specified by:
dispose
in interfaceIHandler
- Overrides:
dispose
in classAbstractHandler
-