hudson.model.Messages._Hudson_ViewName()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中hudson.model.Messages._Hudson_ViewName()方法的一些代码示例,展示了Messages._Hudson_ViewName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages._Hudson_ViewName()方法的具体详情如下:
包路径:hudson.model.Messages
类名称:Messages
方法名:_Hudson_ViewName

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))) {

相关文章

Messages类方法