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


Java Nls类代码示例

本文整理汇总了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)";
}
 
开发者ID:nvlad,项目名称:yii2support,代码行数:11,代码来源:RequireParameterLocalQuickFix.java

示例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&gt", 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";
}
 
开发者ID:cedricziel,项目名称:idea-php-typo3-plugin,代码行数:12,代码来源:CreateMissingTranslationQuickFix.java

示例3: getDisplayName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getDisplayName()
{
    return "Redeclaration of default-value.";
}
 
开发者ID:whitefire,项目名称:roc-completion,代码行数:8,代码来源:RedundantSetting.java

示例4: getFamilyName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getFamilyName()
{
    return "Remove setting";
}
 
开发者ID:whitefire,项目名称:roc-completion,代码行数:8,代码来源:QuickFix.java

示例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;
}
 
开发者ID:ProgramLeague,项目名称:strictfp-back-end,代码行数:15,代码来源:Author.java

示例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);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:JBPopupFactory.java

示例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
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:CodeStyleSchemesConfigurable.java

示例8: getDisplayName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Override
@Nls
@NotNull
public String getDisplayName() {
  return InspectionGadgetsBundle.message(
    "listener.may.use.adapter.display.name");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ListenerMayUseAdapterInspection.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ColorChooser.java

示例10: getDisplayName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Override
@Nls
@NotNull
public String getDisplayName() {
  return InspectionGadgetsBundle.message(
    "constant.junit.assert.argument.display.name");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ConstantJUnitAssertArgumentInspection.java

示例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);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:InspectionManager.java

示例13: getName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getName() {
    return "Remove unused parameter \"%param%\"".replace("%param%", myParam);
}
 
开发者ID:nvlad,项目名称:yii2support,代码行数:7,代码来源:UnusedParameterLocalQuickFix.java

示例14: getFamilyName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getFamilyName() {
    return "Remove unused parameter";
}
 
开发者ID:nvlad,项目名称:yii2support,代码行数:7,代码来源:UnusedParameterLocalQuickFix.java

示例15: getFamilyName

import org.jetbrains.annotations.Nls; //导入依赖的package包/类
@Nls
@NotNull
@Override
public String getFamilyName() {
    return "Add View parameter";
}
 
开发者ID:nvlad,项目名称:yii2support,代码行数:7,代码来源:RequireParameterLocalQuickFix.java


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