Java 类hudson.model.ViewDescriptor 实例源码

项目:jenkins-deployment-dashboard-plugin    文件:DashboardView.java   
@Override
public ViewDescriptor getDescriptor() {
    return DESCRIPTOR;
}
项目:multi-branch-project-plugin    文件:TemplateDrivenMultiBranchProject.java   
/**
 * Returns a list of {@link ViewDescriptor}s that we want to use for this project type.  Used by newView.jelly.
 *
 * @return list of {@link ViewDescriptor}s that we want to use for this project type
 */
@SuppressWarnings(UNUSED)
public static List<ViewDescriptor> getViewDescriptors() {
    return Collections.singletonList(
            (ViewDescriptor) Jenkins.getActiveInstance().getDescriptorByType(BranchListView.DescriptorImpl.class));
}