i18n: external annotations for rt module

GitOrigin-RevId: cce3ed8edfa7fb10eb970f501abfcda596318a16
This commit is contained in:
Anna Kozlova
2020-08-31 19:35:07 +00:00
committed by intellij-monorepo-bot
parent 8bf0b1b301
commit 6954bbc2de
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,6 @@
<root>
<item
name='com.intellij.uiDesigner.FormPreviewFrame.MySetLafAction MySetLafAction(javax.swing.JFrame, javax.swing.UIManager.LookAndFeelInfo, java.lang.String) 2'>
<annotation name='com.intellij.openapi.util.NlsSafe'/>
</item>
</root>
+3
View File
@@ -2,6 +2,9 @@
<module relativePaths="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
<exclude-output />
<annotation-paths>
<root url="file://$MODULE_DIR$/anno" />
</annotation-paths>
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
@@ -53,6 +53,7 @@ public class FormPreviewFrame {
super(ourBundle.getString("form.menu.file.exit"));
}
@Override
public void actionPerformed(final ActionEvent e) {
System.exit(0);
}
@@ -66,6 +67,7 @@ public class FormPreviewFrame {
myFrame = frame;
}
@Override
public void actionPerformed(final ActionEvent e) {
myFrame.pack();
}
@@ -76,11 +78,16 @@ public class FormPreviewFrame {
private final UIManager.LookAndFeelInfo myInfo;
MySetLafAction(final JFrame frame, final UIManager.LookAndFeelInfo info) {
super(info.getName());
this(frame, info, info.getName());
}
MySetLafAction(final JFrame frame, final UIManager.LookAndFeelInfo info, String name) {
super(name);
myFrame = frame;
myInfo = info;
}
@Override
public void actionPerformed(ActionEvent e) {
try{
UIManager.setLookAndFeel(myInfo.getClassName());