diff options
| author | 2019-09-08 13:58:46 +0100 | |
|---|---|---|
| committer | 2019-09-08 13:58:46 +0100 | |
| commit | 734e951d9cac1c49a4b09d4a3e70fda64d58fdc8 (patch) | |
| tree | 554b55305c0833279ece40cf748231a755a929bd /src/main/java/cuchaz/enigma/gui/elements | |
| parent | Cleanup the mappings menu items to use the mappings format enum, will be usef... (diff) | |
| download | enigma-fork-734e951d9cac1c49a4b09d4a3e70fda64d58fdc8.tar.gz enigma-fork-734e951d9cac1c49a4b09d4a3e70fda64d58fdc8.tar.xz enigma-fork-734e951d9cac1c49a4b09d4a3e70fda64d58fdc8.zip | |
Add a default TinyWriter, formatting/misc fixes
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/elements')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/elements/MenuBar.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java b/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java index 45daaca..2e10bfb 100644 --- a/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java +++ b/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java | |||
| @@ -62,8 +62,8 @@ public class MenuBar extends JMenuBar { | |||
| 62 | menu.add(openMenu); | 62 | menu.add(openMenu); |
| 63 | { | 63 | { |
| 64 | openMappingsMenus = new ArrayList<>(); | 64 | openMappingsMenus = new ArrayList<>(); |
| 65 | for(MappingFormat format : MappingFormat.values()){ | 65 | for (MappingFormat format : MappingFormat.values()) { |
| 66 | if(format.getReader() != null){ | 66 | if (format.getReader() != null) { |
| 67 | JMenuItem item = new JMenuItem(Utils.caplisiseCamelCase(format.name())); | 67 | JMenuItem item = new JMenuItem(Utils.caplisiseCamelCase(format.name())); |
| 68 | openMenu.add(item); | 68 | openMenu.add(item); |
| 69 | item.addActionListener(event -> { | 69 | item.addActionListener(event -> { |
| @@ -89,8 +89,8 @@ public class MenuBar extends JMenuBar { | |||
| 89 | menu.add(saveMenu); | 89 | menu.add(saveMenu); |
| 90 | { | 90 | { |
| 91 | saveMappingsMenus = new ArrayList<>(); | 91 | saveMappingsMenus = new ArrayList<>(); |
| 92 | for(MappingFormat format : MappingFormat.values()){ | 92 | for (MappingFormat format : MappingFormat.values()) { |
| 93 | if(format.getWriter() != null){ | 93 | if (format.getWriter() != null) { |
| 94 | JMenuItem item = new JMenuItem(Utils.caplisiseCamelCase(format.name())); | 94 | JMenuItem item = new JMenuItem(Utils.caplisiseCamelCase(format.name())); |
| 95 | saveMenu.add(item); | 95 | saveMenu.add(item); |
| 96 | item.addActionListener(event -> { | 96 | item.addActionListener(event -> { |