本文整理汇总了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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}