下面列出了怎么用hudson.model.ViewDescriptor的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public ViewDescriptor getDescriptor() {
return DESCRIPTOR;
}
/**
* 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));
}