@NotNull @Override public String getText() { if (functionsToAdd.size() == 1) { FunctionDescriptor newFunction = functionsToAdd.get(0); ClassDescriptor supertype = (ClassDescriptor) newFunction.getContainingDeclaration(); return JetBundle.message( "add.function.to.type.action.single", IdeDescriptorRenderers.SOURCE_CODE_SHORT_NAMES_IN_TYPES.render(newFunction), supertype.getName().toString()); } else { return JetBundle.message("add.function.to.supertype.action.multiple"); } }
@NotNull @Override public String getText() { return JetBundle.message( "add.star.projections", TypeReconstructionUtil.getTypeNameAndStarProjectionsString("", argumentCount)); }
@NotNull @Override public String getText() { String stars = TypeReconstructionUtil.getTypeNameAndStarProjectionsString( "", getElement().getTypeArgumentsAsTypes().size()); return JetBundle.message("change.to.star.projection", stars); }
@NotNull @Override public String getText() { if (overriddenNonOverridableMembers.size() == 1) { return JetBundle.message( "make.element.modifier", containingDeclarationsNames.get(0) + "." + element.getName(), OPEN_KEYWORD); } StringBuilder declarations = new StringBuilder(); Collections.sort(containingDeclarationsNames); for (int i = 0; i < containingDeclarationsNames.size() - 2; i++) { declarations.append(containingDeclarationsNames.get(i)); declarations.append(", "); } declarations.append(containingDeclarationsNames.get(containingDeclarationsNames.size() - 2)); declarations.append(" and "); declarations.append(containingDeclarationsNames.get(containingDeclarationsNames.size() - 1)); return JetBundle.message( "make.element.in.classifiers.open", element.getName(), declarations.toString()); }
@NotNull @Override public String getFamilyName() { return JetBundle.message("change.to.star.projection.family"); }
@NotNull @Override public String getFamilyName() { return JetBundle.message("replace.operation.in.binary.expression"); }
@NotNull @Override public String getFamilyName() { return JetBundle.message("add.modifier.family"); }
@Override public String getPresentableName() { return JetBundle.message("macro.fun.anonymousSuper"); }
@NotNull @Override public String getFamilyName() { return JetBundle.message("remove.psi.element.family"); }
@NotNull @Override public String getFamilyName() { return JetBundle.message("make.class.annotation.class.family"); }
@NotNull @Override public String getText() { return JetBundle.message("make.class.annotation.class", annotationClass.getName()); }
@NotNull @Override public String getFamilyName() { return JetBundle.message("add.function.to.supertype.family"); }