IDEA-242126 Devkit: use <actions> "resource-bundle" in inspections

GitOrigin-RevId: 8b4f1bacf881db58485975d5baa6902e244492e8
This commit is contained in:
Yann Cébron
2020-05-29 17:03:28 +02:00
committed by intellij-monorepo-bot
parent fdff11e3e9
commit afd2350d6e
4 changed files with 44 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
action.AnotherBundleAction.text=My Text
action.AnotherBundleAction.description=My description
action.AnotherBundleActionWrongCasing.text=lower case text
action.AnotherBundleActionWrongCasing.description=lower case description
another.titleCaseKey=My Text
another.sentenceCaseKey=My key

View File

@@ -57,4 +57,17 @@
<separator key="<warning descr="String 'My key' is not properly capitalized. It should have title capitalization">sentenceCaseKey</warning>"/>
</group>
</actions>
<!-- Custom Bundle -->
<actions resource-bundle="AnotherBundle">
<action id="AnotherBundleAction"/>
<<warning descr="String 'lower case description' is not properly capitalized. It should have sentence capitalization"><warning descr="String 'lower case text' is not properly capitalized. It should have title capitalization">action</warning></warning> id="AnotherBundleActionWrongCasing"/>
<group id="separatorGroupWithCustomBundle">
<separator key="another.titleCaseKey"/>
<separator key="another.sentenceCaseKey"/>
</group>
</actions>
</idea-plugin>

View File

@@ -22,7 +22,7 @@ public class PluginXmlCapitalizationInspectionTest extends LightJavaCodeInsightF
public void testActionPluginName() {
myFixture.testHighlighting("pluginXmlCapitalization_ActionPluginName.xml",
"MyBundle.properties", "MyAction.java");
"MyBundle.properties", "MyAction.java", "AnotherBundle.properties");
}
public void testExtensionPoint() {