Package jenkins.model
Interface ModelObjectWithContextMenu.ContextMenuVisibility
- All Superinterfaces:
Action
,ModelObject
- Enclosing interface:
- ModelObjectWithContextMenu
Allows an action to decide whether it will be visible in a context menu.
- Since:
- 1.538
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether to show this action right now.Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
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 examineStapler.getCurrentRequest2()
.- Returns:
- true to display it, false to hide
- See Also:
-