mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
IDEA-242126 Devkit: use <actions> "resource-bundle" in inspections
GitOrigin-RevId: 8b4f1bacf881db58485975d5baa6902e244492e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fdff11e3e9
commit
afd2350d6e
@@ -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
|
||||
@@ -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>
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user