Package org.eclipse.core.commands
Interface IHandler2
-
- All Superinterfaces:
IHandler
- All Known Implementing Classes:
AbstractHandler
,AbstractHandler
,AbstractHandlerWithState
,ActionHandler
,ActionHandler
,CollapseAllHandler
,DebugCommandHandler
,ExpandAllHandler
,FileBufferOperationHandler
,MarkerViewHandler
,MergeActionHandler
,NewPropertySheetHandler
,ShowPerspectiveHandler
,ShowViewHandler
,TextZoomInHandler
,TextZoomOutHandler
public interface IHandler2 extends IHandler
Extend the IHandler interface to provide some context for isEnabled() requests. Clients should useAbstractHandler
unless they need to provide their own listener mechanism.- Since:
- 3.4
- See Also:
AbstractHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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, isEnabled, isHandled, removeHandlerListener
-
-
-
-
Method Detail
-
setEnabled
void setEnabled(Object evaluationContext)
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.
-
-