Package org.eclipse.core.commands
Interface IHandler2
- All Superinterfaces:
IHandler
- All Known Implementing Classes:
AbstractEnabledHandler
,AbstractEvaluationHandler
,AbstractHandler
,AbstractHandlerWithState
,ActionHandler
,ActivateEditorHandler
,CloseAllHandler
,CloseEditorHandler
,CloseHelpTrayHandler
,CloseOthersHandler
,CollapseAllHandler
,CompareWithOtherResourceHandler
,CycleEditorHandler
,CyclePerspectiveHandler
,CycleViewHandler
,DebugCommandHandler
,ExpandAllHandler
,FileBufferOperationHandler
,FilteredTableBaseHandler
,HandlerServiceHandler
,MarkerViewHandler
,MergeActionHandler
,NewPropertySheetHandler
,ShowInHandler
,ShowPartPaneMenuHandler
,ShowPerspectiveHandler
,ShowViewHandler
,ShowViewMenuHandler
,SplitHandler
,TextZoomInHandler
,TextZoomOutHandler
,WorkbenchEditorsHandler
,WorkbenchHandlerServiceHandler
,WorkbookEditorsHandler
Extend the IHandler interface to provide some context for isEnabled()
requests. Clients should use
AbstractHandler
unless they need to
provide their own listener mechanism.- Since:
- 3.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setEnabled
(Object evaluationContext) Called by the framework to allow the handler to update its enabled state.Methods inherited from interface org.eclipse.core.commands.IHandler
addHandlerListener, dispose, execute, getHandlerLabel, isEnabled, isHandled, removeHandlerListener
-
Method Details
-
setEnabled
Called by the framework to allow the handler to update its enabled state.- Parameters:
evaluationContext
- the state to evaluate against. May benull
which indicates that the handler can query whatever model that is necessary. This context must not be cached.
-