mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-28 17:25:59 +00:00
generic config get/set methods
This commit is contained in:
@@ -284,7 +284,7 @@ public class ActionPanel extends JPanel implements ActionListener {
|
||||
@Override
|
||||
public void run() {
|
||||
editor.setText("; " + translate("work.disassembling") + "...");
|
||||
if ((Boolean) Configuration.getConfig("decompile", Boolean.TRUE)) {
|
||||
if (Configuration.getConfig("decompile", Boolean.TRUE)) {
|
||||
decompiledEditor.setText("//" + translate("work.waitingfordissasembly") + "...");
|
||||
}
|
||||
DisassemblyListener listener = new DisassemblyListener() {
|
||||
@@ -310,7 +310,7 @@ public class ActionPanel extends JPanel implements ActionListener {
|
||||
srcWithHex = Helper.hexToComments(lastDisasm);
|
||||
srcNoHex = Helper.stripComments(lastDisasm);
|
||||
setHex(hexButton.isSelected());
|
||||
if ((Boolean) Configuration.getConfig("decompile", Boolean.TRUE)) {
|
||||
if (Configuration.getConfig("decompile", Boolean.TRUE)) {
|
||||
decompiledEditor.setText("//" + translate("work.decompiling") + "...");
|
||||
String stripped = "";
|
||||
if (!useCache) {
|
||||
@@ -535,7 +535,7 @@ public class ActionPanel extends JPanel implements ActionListener {
|
||||
}
|
||||
|
||||
public void initSplits() {
|
||||
splitPane.setDividerLocation((Integer) Configuration.getConfig("gui.action.splitPane.dividerLocation", getWidth() / 2));
|
||||
splitPane.setDividerLocation(Configuration.getConfig("gui.action.splitPane.dividerLocation", getWidth() / 2));
|
||||
}
|
||||
|
||||
public void display() {
|
||||
|
||||
Reference in New Issue
Block a user