-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Introduce experimental API for adding actions to experimental Run UI #11204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 9 commits
db697ec
0bfbcfd
6c58d4e
6bed5ac
06adfd2
7d2921f
96e2eb8
f93066b
35a2f60
0c0571e
b544910
c07fbd2
c7af3be
f64571c
7d1c235
3fea627
7b08893
d09c8f0
9873a7b
7c59f80
efc1dd2
7a675f8
efd2767
dd5a560
e6150d5
1282382
399cbb3
6de8e03
abc73c5
f8b82c2
594d3f6
237c303
71ee89d
47834a9
522381b
5ffd7d6
a42ed73
a42f115
7d7240d
e5b3082
fccb53f
226680d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,10 @@ | |
|
|
||
| import edu.umd.cs.findbugs.annotations.CheckForNull; | ||
| import hudson.Functions; | ||
| import jenkins.model.menu.Group; | ||
| import jenkins.model.menu.Semantic; | ||
| import jenkins.model.menu.event.Event; | ||
| import jenkins.model.menu.event.LinkEvent; | ||
|
|
||
| /** | ||
| * Object that contributes additional information, behaviors, and UIs to {@link ModelObject} | ||
|
|
@@ -137,6 +141,27 @@ | |
| * null if this action object doesn't need to be bound to web | ||
| * (when you do that, be sure to also return null from {@link #getIconFileName()}. | ||
| * @see Functions#getActionUrl(String, Action) | ||
| * | ||
| * @deprecated | ||
| * Override {@link #getEvent()} instead | ||
| */ | ||
| @CheckForNull String getUrlName(); | ||
| @CheckForNull default String getUrlName() { | ||
|
Check warning on line 148 in core/src/main/java/hudson/model/Action.java
|
||
| return null; | ||
| } | ||
|
|
||
| default Group getGroup() { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be part of
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this the best way of grouping/ordering items? |
||
| return Group.IN_MENU; | ||
| } | ||
|
|
||
| default Event getEvent() { | ||
| return LinkEvent.of(getUrlName()); | ||
| } | ||
|
|
||
| default Semantic getSemantic() { | ||
| return null; | ||
| } | ||
|
|
||
| default boolean isVisibleInContextMenu() { | ||
| return true; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.