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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isVisible()
Determines whether to show this action right now.-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
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 examineStapler.getCurrentRequest()
.- Returns:
- true to display it, false to hide
- See Also:
ModelObjectWithContextMenu.ContextMenu.add(Action)
-
-