本文整理汇总了Java中org.jetbrains.annotations.Nls类的典型用法代码示例。如果您正苦于以下问题:Java Nls类的具体用法?Java Nls怎么用?Java Nls使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Nls类属于org.jetbrains.annotations包,在下文中一共展示了Nls类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getName() {
if (myVariables.length == 1) {
return "Add \"%param%\" parameter".replace("%param%", myVariables[0]);
}
return "Add View parameter(s)";
}
示例2: getFamilyName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
/**
* @return text to appear in "Apply Fix" popup when multiple Quick Fixes exist (in the results of batch code inspection). For example,
* if the name of the quickfix is "Create template <filename>", the return value of getFamilyName() should be "Create template".
* If the name of the quickfix does not depend on a specific element, simply return getName().
*/
@Nls
@NotNull
@Override
public String getFamilyName() {
return "Create Translation key";
}
示例3: getDisplayName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getDisplayName()
{
return "Redeclaration of default-value.";
}
示例4: getFamilyName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getFamilyName()
{
return "Remove setting";
}
示例5: Author
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
public Author(
int Id,
@NotNull WriterType writerType,
@NotNull @Nls String name,
@NotNull @Nls String motto,
@NotNull URL avatarURL,
@NotNull Gender gender) {
this.Id = Id;
this.writerType = writerType;
this.name = name;
this.motto = motto;
this.avatarURL = avatarURL;
this.gender = gender;
}
示例6: createActionGroupPopup
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@NotNull
public abstract ListPopup createActionGroupPopup(@Nls(capitalization = Nls.Capitalization.Title) String title,
@NotNull ActionGroup actionGroup,
@NotNull DataContext dataContext,
boolean showNumbers,
boolean showDisabledActions,
boolean honorActionMnemonics,
@Nullable Runnable disposeCallback,
int maxRowCount,
@Nullable Condition<AnAction> preselectActionCondition);
示例7: getDisplayName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Override
@Nls
public String getDisplayName() {
String displayName = myProvider.getConfigurableDisplayName();
if (displayName != null) return displayName;
return myPanel != null ? myPanel.getDisplayName() : null; // fallback for 8.0 API compatibility
}
示例8: getDisplayName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Override
@Nls
@NotNull
public String getDisplayName() {
return InspectionGadgetsBundle.message(
"listener.may.use.adapter.display.name");
}
示例9: chooseColor
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nullable
public static Color chooseColor(Component parent,
@Nls(capitalization = Nls.Capitalization.Title) String caption,
@Nullable Color preselectedColor,
boolean enableOpacity,
List<ColorPickerListener> listeners,
boolean opacityInPercent) {
return ColorChooserService.getInstance().showDialog(parent, caption, preselectedColor, enableOpacity, listeners, opacityInPercent);
}
示例10: getDisplayName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Override
@Nls
@NotNull
public String getDisplayName() {
return InspectionGadgetsBundle.message(
"constant.junit.assert.argument.display.name");
}
示例11: getDisplayName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getDisplayName() {
return InspectionGadgetsBundle.message(
"unnecessarily.qualified.inner.class.access.display.name");
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:UnnecessarilyQualifiedInnerClassAccessInspection.java
示例12: createProblemDescriptor
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@NotNull
public abstract ProblemDescriptor createProblemDescriptor(@NotNull final PsiElement psiElement,
@NotNull @Nls(capitalization = Nls.Capitalization.Sentence) String descriptionTemplate,
final boolean showTooltip,
@NotNull ProblemHighlightType highlightType,
boolean onTheFly,
final LocalQuickFix... fixes);
示例13: getName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getName() {
return "Remove unused parameter \"%param%\"".replace("%param%", myParam);
}
示例14: getFamilyName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getFamilyName() {
return "Remove unused parameter";
}
示例15: getFamilyName
import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getFamilyName() {
return "Add View parameter";
}