mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
added a new plugin that serves as the UI showcase and test bed for various controls.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28542 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
2eed5dec68
commit
5d14ae12be
10 files changed
+279
-2
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package hudson.plugins.ui_samples;
|
||||
|
||||
import hudson.Extension;
|
||||
import hudson.model.RootAction;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Entry point to all the UI samples.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
@Extension
|
||||
public class Root implements RootAction {
|
||||
public String getIconFileName() {
|
||||
return "gear.gif";
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return "UI Samples";
|
||||
}
|
||||
|
||||
public String getUrlName() {
|
||||
return "ui-samples";
|
||||
}
|
||||
|
||||
public UISample getDynamic(String name) {
|
||||
for (UISample ui : getAll())
|
||||
if (ui.getUrlName().equals(name))
|
||||
return ui;
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<UISample> getAll() {
|
||||
return UISample.all();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user