summaryrefslogtreecommitdiff
path: root/src/main/java/cuchaz/enigma/gui/Gui.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/Gui.java')
-rw-r--r--src/main/java/cuchaz/enigma/gui/Gui.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/Gui.java b/src/main/java/cuchaz/enigma/gui/Gui.java
index 71bf5dc..cac6ca1 100644
--- a/src/main/java/cuchaz/enigma/gui/Gui.java
+++ b/src/main/java/cuchaz/enigma/gui/Gui.java
@@ -20,7 +20,6 @@ import cuchaz.enigma.gui.dialog.CrashDialog;
20import cuchaz.enigma.gui.elements.MenuBar; 20import cuchaz.enigma.gui.elements.MenuBar;
21import cuchaz.enigma.gui.elements.PopupMenuBar; 21import cuchaz.enigma.gui.elements.PopupMenuBar;
22import cuchaz.enigma.gui.filechooser.FileChooserAny; 22import cuchaz.enigma.gui.filechooser.FileChooserAny;
23import cuchaz.enigma.gui.filechooser.FileChooserFile;
24import cuchaz.enigma.gui.filechooser.FileChooserFolder; 23import cuchaz.enigma.gui.filechooser.FileChooserFolder;
25import cuchaz.enigma.gui.highlight.DeobfuscatedHighlightPainter; 24import cuchaz.enigma.gui.highlight.DeobfuscatedHighlightPainter;
26import cuchaz.enigma.gui.highlight.ObfuscatedHighlightPainter; 25import cuchaz.enigma.gui.highlight.ObfuscatedHighlightPainter;
@@ -63,11 +62,11 @@ public class Gui {
63 private final MenuBar menuBar; 62 private final MenuBar menuBar;
64 // state 63 // state
65 public EntryReference<Entry, Entry> reference; 64 public EntryReference<Entry, Entry> reference;
66 public JFileChooser jarFileChooser; 65 public FileDialog jarFileChooser;
67 public JFileChooser tinyMappingsFileChooser; 66 public FileDialog tinyMappingsFileChooser;
68 public JFileChooser enigmaMappingsFileChooser; 67 public JFileChooser enigmaMappingsFileChooser;
69 public JFileChooser exportSourceFileChooser; 68 public JFileChooser exportSourceFileChooser;
70 public JFileChooser exportJarFileChooser; 69 public FileDialog exportJarFileChooser;
71 private GuiController controller; 70 private GuiController controller;
72 private JFrame frame; 71 private JFrame frame;
73 public PanelEditor editor; 72 public PanelEditor editor;
@@ -105,12 +104,12 @@ public class Gui {
105 this.controller = new GuiController(this); 104 this.controller = new GuiController(this);
106 105
107 // init file choosers 106 // init file choosers
108 this.jarFileChooser = new FileChooserFile(); 107 this.jarFileChooser = new FileDialog(getFrame(), "Open Jar", FileDialog.LOAD);
109 108
110 this.tinyMappingsFileChooser = new FileChooserFile(); 109 this.tinyMappingsFileChooser = new FileDialog(getFrame(), "Open tiny Mappings", FileDialog.LOAD);
111 this.enigmaMappingsFileChooser = new FileChooserAny(); 110 this.enigmaMappingsFileChooser = new FileChooserAny();
112 this.exportSourceFileChooser = new FileChooserFolder(); 111 this.exportSourceFileChooser = new FileChooserFolder();
113 this.exportJarFileChooser = new FileChooserFile(); 112 this.exportJarFileChooser = new FileDialog(getFrame(), "Export jar", FileDialog.SAVE);
114 113
115 this.obfPanel = new PanelObf(this); 114 this.obfPanel = new PanelObf(this);
116 this.deobfPanel = new PanelDeobf(this); 115 this.deobfPanel = new PanelDeobf(this);