alternative id (IDEA-140469)

This commit is contained in:
Anna Kozlova
2015-05-21 21:53:46 +02:00
parent 34d5b5f027
commit a5fe547114
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
<gotoDeclarationHandler implementation="com.intellij.codeInspection.i18n.folding.I18nMessageGotoDeclarationHandler" order="FIRST"/>
<inlineActionHandler implementation="com.intellij.refactoring.inline.InlinePropertyHandler"/>
<localInspection shortName="HardCodedStringLiteral" bundle="messages.CodeInsightBundle" key="inspection.i18n.display.name"
<localInspection shortName="HardCodedStringLiteral" alternativeId="nls" bundle="messages.CodeInsightBundle" key="inspection.i18n.display.name"
groupBundle="messages.InspectionsBundle" groupKey="group.names.internationalization.issues" enabledByDefault="false" level="WARNING"
implementationClass="com.intellij.codeInspection.i18n.I18nInspection"/>
<localInspection groupPath="Java" language="JAVA" shortName="UnresolvedPropertyKey" bundle="messages.CodeInsightBundle"
@@ -403,6 +403,12 @@ public class I18nInspection extends BaseLocalInspectionTool {
return null;
}
@Nullable
@Override
public String getAlternativeID() {
return "nls";
}
@Override
@Nullable
public ProblemDescriptor[] checkFile(@NotNull PsiFile file, @NotNull InspectionManager manager, boolean isOnTheFly) {