Package jenkins.model

Interface ModelObjectWithContextMenu.ContextMenuVisibility

All Superinterfaces:
Action, ModelObject
Enclosing interface:
ModelObjectWithContextMenu

public static interface ModelObjectWithContextMenu.ContextMenuVisibility extends Action
Allows an action to decide whether it will be visible in a context menu.
Since:
1.538
  • Method Details

    • isVisible

      boolean isVisible()
      Determines whether to show this action right now. Can always return false, for an action which should never be in the context menu; or could examine Stapler.getCurrentRequest().
      Returns:
      true to display it, false to hide
      See Also: