本文整理了Java中hudson.model.Messages._Hudson_ViewName()
方法的一些代码示例,展示了Messages._Hudson_ViewName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages._Hudson_ViewName()
方法的具体详情如下:
包路径:hudson.model.Messages
类名称:Messages
方法名:_Hudson_ViewName
[英]All
[中]全部的
代码示例来源:origin: jenkinsci/jenkins
if (name.equals(Messages._Hudson_ViewName().toString(l))) {
代码示例来源:origin: jenkinsci/jenkins
if (primaryView.equals(Messages._Hudson_ViewName().toString(l))) {
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Gets a view by the specified name.
* The method iterates through {@link ViewGroup}s if required.
* @param name Name of the view
* @return View instance or {@code null} if it is missing
*/
@CheckForNull
public View getView(@CheckForNull String name) {
for (View v : views()) {
if(v.getViewName().equals(name))
return v;
}
if (name != null && !name.equals(primaryView())) {
// Fallback to subview of primary view if it is a ViewGroup
View pv = getPrimaryView();
if (pv instanceof ViewGroup)
return ((ViewGroup)pv).getView(name);
if (pv instanceof AllView && AllView.DEFAULT_VIEW_NAME.equals(pv.name)) {
// JENKINS-38606: primary view is the default AllView, is somebody using an old link to localized form?
for (Locale l : Locale.getAvailableLocales()) {
if (name.equals(Messages._Hudson_ViewName().toString(l))) {
// why yes they are, let's keep that link working
return pv;
}
}
}
}
return null;
}
代码示例来源:origin: jenkinsci/cloudbees-folder-plugin
if (primaryView.equals(hudson.model.Messages._Hudson_ViewName().toString(l))) {
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
if (primaryView.equals(Messages._Hudson_ViewName().toString(l))) {
内容来源于网络,如有侵权,请联系作者删除!