Quick Decompile Clean Up
This commit is contained in:
parent
5f72bc435a
commit
f5a3d41f71
2 changed files with 8 additions and 10 deletions
|
@ -269,11 +269,9 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File
|
||||||
tree.updateUI();
|
tree.updateUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void quickDecompile(Decompiler decompiler, TreePath selPath)
|
/**
|
||||||
{
|
* Opens and decompiles the TreePath in a new tab
|
||||||
quickDecompile(decompiler, selPath, false);
|
*/
|
||||||
}
|
|
||||||
|
|
||||||
public void quickDecompile(Decompiler decompiler, TreePath selPath, boolean quickEdit)
|
public void quickDecompile(Decompiler decompiler, TreePath selPath, boolean quickEdit)
|
||||||
{
|
{
|
||||||
Decompiler tempDecompiler1 = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler();
|
Decompiler tempDecompiler1 = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler();
|
||||||
|
|
|
@ -37,11 +37,11 @@ public class QuickOpen extends ContextMenuItem
|
||||||
super(ContextMenuType.RESOURCE, ((tree, selPath, menu) ->
|
super(ContextMenuType.RESOURCE, ((tree, selPath, menu) ->
|
||||||
{
|
{
|
||||||
JMenu quickOpen = new JMenu(TranslatedStrings.QUICK_OPEN.toString());
|
JMenu quickOpen = new JMenu(TranslatedStrings.QUICK_OPEN.toString());
|
||||||
quickOpen.add(createMenu(TranslatedStrings.PROCYON.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.PROCYON_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.PROCYON.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.PROCYON_DECOMPILER, selPath, false)));
|
||||||
quickOpen.add(createMenu(TranslatedStrings.CFR.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.CFR_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.CFR.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.CFR_DECOMPILER, selPath, false)));
|
||||||
quickOpen.add(createMenu(TranslatedStrings.FERNFLOWER.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.FERNFLOWER_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.FERNFLOWER.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.FERNFLOWER_DECOMPILER, selPath, false)));
|
||||||
quickOpen.add(createMenu(TranslatedStrings.KRAKATAU.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.KRAKATAU_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.KRAKATAU.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.KRAKATAU_DECOMPILER, selPath, false)));
|
||||||
quickOpen.add(createMenu(TranslatedStrings.BYTECODE.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.BYTECODE_DISASSEMBLER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.BYTECODE.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.BYTECODE_DISASSEMBLER, selPath, false)));
|
||||||
menu.add(quickOpen);
|
menu.add(quickOpen);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue