Class ExplorerEditActions

All Implemented Interfaces:
ActionContributor, SelectedContextAware

public class ExplorerEditActions extends EditActionsContributor implements SelectedContextAware
A Set of edit actions that contribute to the menu and become enabled/disabled dependent on job selection.

The actions forward to the actual edit actions in the underlying components action map (in explorers case, the trees action map). Disabling/Enabling is not passed to the underlying actions so they will always respond to key strokes.

Author:
rob
  • Constructor Details

    • ExplorerEditActions

      public ExplorerEditActions()
  • Method Details

    • setSelectedContext

      public void setSelectedContext(ExplorerContext context)
      Description copied from interface: SelectedContextAware
      Called when the job selection changes. This is generally used to capture the new context and also clear any previous state for the last context.
      Specified by:
      setSelectedContext in interface SelectedContextAware
      Parameters:
      context - The context. Will never be null.
    • prepare

      public void prepare()
      Description copied from interface: SelectedContextAware
      Called after the job has been selected, but before any action is to be performed. This is normally just before a menu is to be shown.
      Specified by:
      prepare in interface SelectedContextAware