Class ClearCutAction

All Implemented Interfaces:
DockingActionIf, HelpDescriptor

public class ClearCutAction extends ProjectTreeAction
  • Constructor Details

    • ClearCutAction

      public ClearCutAction(String owner)
  • Method Details

    • isValidContext

      public boolean isValidContext(ActionContext context)
      Description copied from interface: DockingActionIf
      Method that actions implement to indicate if this action is valid (knows how to work with, is appropriate for) for the given context. This method is used to determine if the action should be enabled based on the either the local context or the global context. The action is first asked if it is valid for the local context and if not, then it is asked if it is valid for the global context. If a context is valid, then it will then be asked if it is enabled for that context.
      Specified by:
      isValidContext in interface DockingActionIf
      Overrides:
      isValidContext in class ProjectTreeAction
      Parameters:
      context - the ActionContext from the active provider.
      Returns:
      true if this action is appropriate for the given context.
    • isEnabledForContext

      public boolean isEnabledForContext(FrontEndProjectTreeContext context)
      Overrides:
      isEnabledForContext in class ProjectTreeAction
    • actionPerformed

      public void actionPerformed(FrontEndProjectTreeContext context)
      Specified by:
      actionPerformed in class ProjectTreeAction