当前位置: 首页>>代码示例>>Java>>正文


Java CommonRefactoringUtil.capitalize方法代码示例

本文整理汇总了Java中com.intellij.refactoring.util.CommonRefactoringUtil.capitalize方法的典型用法代码示例。如果您正苦于以下问题:Java CommonRefactoringUtil.capitalize方法的具体用法?Java CommonRefactoringUtil.capitalize怎么用?Java CommonRefactoringUtil.capitalize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.refactoring.util.CommonRefactoringUtil的用法示例。


在下文中一共展示了CommonRefactoringUtil.capitalize方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: visitClassMemberReferenceElement

import com.intellij.refactoring.util.CommonRefactoringUtil; //导入方法依赖的package包/类
protected void visitClassMemberReferenceElement(PsiMember classMember, PsiJavaCodeReferenceElement classMemberReference) {
  if(myMovedMembers.contains(classMember) && !myAbstractMembers.contains(classMember)) {
    String message = RefactoringBundle.message("0.uses.1.which.is.pushed.down", RefactoringUIUtil.getDescription(mySource, false),
                                          RefactoringUIUtil.getDescription(classMember, false));
    message = CommonRefactoringUtil.capitalize(message);
    myConflicts.putValue(mySource, message);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:PushDownConflicts.java

示例2: getDescription

import com.intellij.refactoring.util.CommonRefactoringUtil; //导入方法依赖的package包/类
public String getDescription() {
  String descr;
  if (!(getElement() instanceof PsiMethod)) {
    descr = RefactoringBundle.message("0.will.hide.renamed.1",
                                      RefactoringUIUtil.getDescription(getElement(), true),
                                      UsageViewUtil.getType(getElement()));
  }
  else {
    descr = RefactoringBundle.message("0.will.override.renamed.1",
                                      RefactoringUIUtil.getDescription(getElement(), true),
                                      UsageViewUtil.getType(getElement()));
  }
  return CommonRefactoringUtil.capitalize(descr);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:SubmemberHidesMemberUsageInfo.java

示例3: getDescription

import com.intellij.refactoring.util.CommonRefactoringUtil; //导入方法依赖的package包/类
public String getDescription() {

    PsiElement element = getElement();
    String type = element == null ? "element" : UsageViewUtil.getType(element);
    final String descr = RefactoringBundle.message("there.is.already.a.0.it.will.conflict.with.the.renamed.1",
                                                   RefactoringUIUtil.getDescription(myConflictingElement, true),
                                                   type);
    return CommonRefactoringUtil.capitalize(descr);
  }
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:LocalHidesRenamedLocalUsageInfo.java

示例4: getDescription

import com.intellij.refactoring.util.CommonRefactoringUtil; //导入方法依赖的package包/类
public String getDescription() {
  String buffer = RefactoringBundle.message("there.is.already.a.0.in.1.it.will.conflict.with.the.new.parameter",
                                   RefactoringUIUtil.getDescription(myConflictingElement, true),
                                   RefactoringUIUtil.getDescription(myMethod, true));

  return CommonRefactoringUtil.capitalize(buffer);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:NewParameterCollidesWithLocalUsageInfo.java

示例5: getDescription

import com.intellij.refactoring.util.CommonRefactoringUtil; //导入方法依赖的package包/类
public String getDescription() {
  String descr = RefactoringBundle.message("local.will.be.hidden.renamed",
                                           RefactoringUIUtil.getDescription(getElement(), true));
  return CommonRefactoringUtil.capitalize(descr);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:FieldHidesLocalUsageInfo.java


注:本文中的com.intellij.refactoring.util.CommonRefactoringUtil.capitalize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。