Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions core/src/main/java/hudson/model/RootAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ public interface RootAction extends Action, ExtensionPoint {
/**
* Identifies if the action is a primary action.
* Primary actions may be handled differently in the UI (for example, by always showing on the header rather than in an actions dropdown).
* In almost all cases this should return {@code false} which is the default
* @return {@code true} iff this action should be considered primary.
* In almost all cases this should return {@code false} which is the default.
* Examples of a Primary action would be where actions would be used regularly or they would need to be prominent to convey some status.
* As a concrete example, an action that provides a Help action with a submenu containing various different links, would be a prime candidate for this to return {@code true}.
* If your action has the possibility of a {@link #getBadge() badge} then this is another indicator that the action should return {@code true} (or otherwise restructured).
* @return {@code true} if and only if this action should be considered primary.
* @since 2.516

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream change has been merged after 2.515 and before 2.516 so it would be this.
Changed here to avoid leaving a known TODO in the code.

*/
default boolean isPrimaryAction() {
Expand Down