コード例 #1
0
 @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");
   }
 }
コード例 #2
0
 @NotNull
 @Override
 public String getText() {
   return JetBundle.message(
       "add.star.projections",
       TypeReconstructionUtil.getTypeNameAndStarProjectionsString("", argumentCount));
 }
コード例 #3
0
 @NotNull
 @Override
 public String getText() {
   String stars =
       TypeReconstructionUtil.getTypeNameAndStarProjectionsString(
           "", getElement().getTypeArgumentsAsTypes().size());
   return JetBundle.message("change.to.star.projection", stars);
 }
コード例 #4
0
  @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());
  }
コード例 #5
0
 @NotNull
 @Override
 public String getFamilyName() {
   return JetBundle.message("change.to.star.projection.family");
 }
コード例 #6
0
 @NotNull
 @Override
 public String getFamilyName() {
   return JetBundle.message("replace.operation.in.binary.expression");
 }
コード例 #7
0
 @NotNull
 @Override
 public String getFamilyName() {
   return JetBundle.message("add.modifier.family");
 }
コード例 #8
0
 @Override
 public String getPresentableName() {
   return JetBundle.message("macro.fun.anonymousSuper");
 }
コード例 #9
0
 @NotNull
 @Override
 public String getFamilyName() {
   return JetBundle.message("remove.psi.element.family");
 }
コード例 #10
0
 @NotNull
 @Override
 public String getFamilyName() {
   return JetBundle.message("make.class.annotation.class.family");
 }
コード例 #11
0
 @NotNull
 @Override
 public String getText() {
   return JetBundle.message("make.class.annotation.class", annotationClass.getName());
 }
コード例 #12
0
 @NotNull
 @Override
 public String getFamilyName() {
   return JetBundle.message("add.function.to.supertype.family");
 }