Interface IHandler2

All Superinterfaces:
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 use AbstractHandler unless they need to provide their own listener mechanism.
See Also:
  • Method Details

    • setEnabled

      void setEnabled(Object evaluationContext)
      Called by the framework to allow the handler to update its enabled state.
      evaluationContext - the state to evaluate against. May be null which indicates that the handler can query whatever model that is necessary. This context must not be cached.