IDEA-40673 Bad mnemonics in Resources dialog
authorAnna Kozlova <anna.kozlova@jetbrains.com>
Tue, 24 Jan 2012 13:54:19 +0000 (17:54 +0400)
committerAnna Kozlova <anna.kozlova@jetbrains.com>
Tue, 24 Jan 2012 16:35:35 +0000 (20:35 +0400)
platform/platform-api/src/com/intellij/ui/AddEditRemovePanel.java
platform/platform-resources-en/src/messages/XmlBundle.properties

index f20ba3516a6c838255e430f5c298da31038818fb..73644932a4686d0a60d99304ed94e15bf4038538 100644 (file)
@@ -65,11 +65,6 @@ public abstract class AddEditRemovePanel<T> extends PanelWithButtons implements
   protected void initPanel() {
     setLayout(new BorderLayout());
 
-    final String label = getLabelText();
-    if (label != null) {
-      setBorder(IdeBorderFactory.createTitledBorder(label, false, false, true));
-    }
-
     final JPanel panel = ToolbarDecorator.createDecorator(myTable)
       .setAddAction(new AnActionButtonRunnable() {
         @Override
@@ -93,6 +88,10 @@ public abstract class AddEditRemovePanel<T> extends PanelWithButtons implements
       .disableDownAction()
       .createPanel();
     add(panel, BorderLayout.CENTER);
+    final String label = getLabelText();
+    if (label != null) {
+      add(SeparatorFactory.createSeparator(label, myTable), BorderLayout.NORTH);
+    }
   }
 
   protected String getLabelText(){
index 726bd2cec3cd8aef4a3dae44e22dadab781d56fb..56c26bca3562bbd3be50ccb414488ee972c2eba9 100644 (file)
@@ -131,8 +131,8 @@ label.edit.external.resource.path=Path:
 column.name.edit.external.resource.uri=URI
 column.name.edit.external.resource.location=Location
 display.name.edit.external.resource=Schemas and DTDs
-label.edit.external.resource.configure.external.resources=External Schemas and DTDs
-label.edit.external.resource.configure.ignored.resources=Ignored Schemas and DTDs
+label.edit.external.resource.configure.external.resources=&External Schemas and DTDs
+label.edit.external.resource.configure.ignored.resources=&Ignored Schemas and DTDs
 
 no.external.resources=No external resources
 no.ignored.resources=No ignored resources