當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。