本文整理匯總了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";
}