|
55 | 55 | * GUI implementation of MCP |
56 | 56 | */ |
57 | 57 | public class MainGUI extends MCP { |
58 | | - public static final TaskMode[] TASKS = {TaskMode.DECOMPILE, TaskMode.RECOMPILE, TaskMode.REOBFUSCATE, TaskMode.BUILD, TaskMode.UPDATE_MD5, TaskMode.CREATE_PATCH}; |
| 58 | + public static final TaskMode[] TASKS = {TaskMode.DECOMPILE, TaskMode.RECOMPILE, TaskMode.REOBFUSCATE, TaskMode.BUILD, TaskMode.CREATE_PATCH}; |
59 | 59 | public static final String[] TABS = {"task.decompile", "task.recompile", "task.reobfuscate", "task.build", "options.running"}; |
60 | 60 | public static final TaskParameter[][] TAB_PARAMETERS = { |
61 | 61 | {TaskParameter.PATCHES, TaskParameter.FERNFLOWER_OPTIONS, TaskParameter.IGNORED_PACKAGES, TaskParameter.OUTPUT_SRC, TaskParameter.DECOMPILE_RESOURCES, TaskParameter.GUESS_GENERICS, TaskParameter.STRIP_GENERICS}, |
@@ -347,22 +347,6 @@ public TaskButton getButton(TaskMode task) { |
347 | 347 | } |
348 | 348 | }); |
349 | 349 | button = new TaskButton(this, task, defaultActionListener); |
350 | | - } else if (task == TaskMode.CLEANUP) { |
351 | | - ActionListener defaultActionListener = event -> Util.enqueueRunnable(() -> { |
352 | | - int response = JOptionPane.showConfirmDialog(frame, MCP.TRANSLATOR.translateKey("mcp.confirmCleanup"), MCP.TRANSLATOR.translateKey("mcp.confirmAction"), JOptionPane.YES_NO_OPTION); |
353 | | - if (response == JOptionPane.YES_OPTION) { |
354 | | - performTask(task, Side.ANY); |
355 | | - } |
356 | | - }); |
357 | | - button = new TaskButton(this, task, defaultActionListener); |
358 | | - } else if (task == TaskMode.UPDATE_MD5) { |
359 | | - ActionListener defaultActionListener = event -> Util.enqueueRunnable(() -> { |
360 | | - int response = JOptionPane.showConfirmDialog(frame, MCP.TRANSLATOR.translateKey("mcp.confirmUpdateMD5"), MCP.TRANSLATOR.translateKey("mcp.confirmAction"), JOptionPane.YES_NO_OPTION); |
361 | | - if (response == JOptionPane.YES_OPTION) { |
362 | | - performTask(task, getSide()); |
363 | | - } |
364 | | - }); |
365 | | - button = new TaskButton(this, task, defaultActionListener); |
366 | 350 | } else { |
367 | 351 | button = new TaskButton(this, task); |
368 | 352 | } |
|
0 commit comments