cleanup
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Tue, 15 Nov 2016 11:46:05 +0000 (12:46 +0100)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Tue, 15 Nov 2016 12:43:58 +0000 (13:43 +0100)
platform/platform-impl/src/com/intellij/ide/util/ExportToFileUtil.java

index 41d29cc5f9003ab0b76ea3fa3be7f53e27c4493f..efef222f709ef38725a6537d2a65aa03cf4baa76 100644 (file)
@@ -183,7 +183,7 @@ public class ExportToFileUtil {
     }
 
     protected JComponent createNorthPanel() {
-      JPanel filePanel = createFilePanel(myTfFile.getTextField(), myTfFile.getButton());
+      JPanel filePanel = createFilePanel();
       JComponent settingsPanel = myExporter.getSettingsEditor();
       if (settingsPanel == null) {
         return filePanel;
@@ -194,7 +194,7 @@ public class ExportToFileUtil {
       return northPanel;
     }
 
-    protected JPanel createFilePanel(JTextField textField, JButton button) {
+    protected JPanel createFilePanel() {
       JPanel panel = new JPanel();
       panel.setLayout(new GridBagLayout());
       GridBagConstraints gbConstraints = new GridBagConstraints();
@@ -206,9 +206,10 @@ public class ExportToFileUtil {
       panel.add(myTfFile, gbConstraints);
 
       String defaultFilePath = myExporter.getDefaultFilePath();
-      if (! new File(defaultFilePath).isAbsolute()) {
+      if (!new File(defaultFilePath).isAbsolute()) {
         defaultFilePath = PathMacroManager.getInstance(myProject).collapsePath(defaultFilePath).replace('/', File.separatorChar);
-      } else {
+      }
+      else {
         defaultFilePath = defaultFilePath.replace('/', File.separatorChar);
       }
       myTfFile.setText(defaultFilePath);