mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28542 71c3de6d-444a-0410-be80-ed276b4c234a
38 lines
724 B
Java
38 lines
724 B
Java
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();
|
|
}
|
|
}
|