forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0191e64
commit 7fe28ad
Showing
14 changed files
with
214 additions
and
41 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
core/src/main/java/jenkins/model/menu/event/DoNothingAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package jenkins.model.menu.event; | ||
|
||
public final class DoNothingAction implements Action {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
core/src/main/java/jenkins/model/view/CheckFingerprintMenuItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package jenkins.model.view; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Action; | ||
import hudson.model.ListView; | ||
import java.util.Collection; | ||
import java.util.Set; | ||
import jenkins.model.TransientActionFactory; | ||
import jenkins.model.menu.Group; | ||
import jenkins.model.menu.event.LinkAction; | ||
|
||
public class CheckFingerprintMenuItem implements Action { | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Check File Fingerprint"; | ||
} | ||
|
||
@Override | ||
public String getIconFileName() { | ||
return "symbol-fingerprint"; | ||
} | ||
|
||
@Override | ||
public Group getGroup() { | ||
return Group.FIRST_IN_MENU; | ||
} | ||
|
||
@Override | ||
public jenkins.model.menu.event.Action getAction() { | ||
return LinkAction.of("fingerprint"); | ||
} | ||
|
||
@Extension | ||
public static class TransientActionFactoryImpl extends TransientActionFactory<ListView> { | ||
|
||
@Override | ||
public Class<ListView> type() { | ||
return ListView.class; | ||
} | ||
|
||
@Override | ||
public Collection<? extends Action> createFor(ListView target) { | ||
return Set.of(new CheckFingerprintMenuItem()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
core/src/main/java/jenkins/model/view/ProjectRelationshipMenuItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package jenkins.model.view; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Action; | ||
import hudson.model.ListView; | ||
import java.util.Collection; | ||
import java.util.Set; | ||
import jenkins.model.TransientActionFactory; | ||
import jenkins.model.menu.Group; | ||
import jenkins.model.menu.event.LinkAction; | ||
|
||
public class ProjectRelationshipMenuItem implements Action { | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Project relationship"; | ||
} | ||
|
||
@Override | ||
public String getIconFileName() { | ||
return "symbol-project-relationship"; | ||
} | ||
|
||
@Override | ||
public Group getGroup() { | ||
return Group.FIRST_IN_MENU; | ||
} | ||
|
||
@Override | ||
public jenkins.model.menu.event.Action getAction() { | ||
return LinkAction.of("projectRelationship"); | ||
} | ||
|
||
@Extension | ||
public static class TransientActionFactoryImpl extends TransientActionFactory<ListView> { | ||
|
||
@Override | ||
public Class<ListView> type() { | ||
return ListView.class; | ||
} | ||
|
||
@Override | ||
public Collection<? extends Action> createFor(ListView target) { | ||
return Set.of(new ProjectRelationshipMenuItem()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.