Use GlobalOptions

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@675 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent e953770097
commit e5c541bb00
  1. 14
      jode/jode/JodeWindow.java

@ -143,7 +143,7 @@ public class JodeWindow
startButton.addActionListener(this); startButton.addActionListener(this);
saveButton.addActionListener(this); saveButton.addActionListener(this);
///#endif ///#endif
Decompiler.err = new PrintStream(new AreaOutputStream(errorArea)); GlobalOptions.err = new PrintStream(new AreaOutputStream(errorArea));
} }
public void setClasspath(String cp) { public void setClasspath(String cp) {
@ -188,14 +188,14 @@ public class JodeWindow
out.close(); out.close();
} catch (IOException ex) { } catch (IOException ex) {
errorArea.setText(""); errorArea.setText("");
Decompiler.err.println("Couldn't write to file " GlobalOptions.err.println("Couldn't write to file "
+ fileName + ": "); + fileName + ": ");
ex.printStackTrace(Decompiler.err); ex.printStackTrace(GlobalOptions.err);
} catch (SecurityException ex) { } catch (SecurityException ex) {
errorArea.setText(""); errorArea.setText("");
Decompiler.err.println("Couldn't write to file " GlobalOptions.err.println("Couldn't write to file "
+ fileName + ": "); + fileName + ": ");
ex.printStackTrace(Decompiler.err); ex.printStackTrace(GlobalOptions.err);
} }
} }
} }
@ -225,7 +225,7 @@ public class JodeWindow
} }
public void run() { public void run() {
Decompiler.isVerbose = verboseCheck.getState(); GlobalOptions.verboseLevel = verboseCheck.getState() ? 1 : 0;
Decompiler.prettyLocals = prettyCheck.getState(); Decompiler.prettyLocals = prettyCheck.getState();
errorArea.setText(""); errorArea.setText("");
///#ifdef AWT10 ///#ifdef AWT10
@ -286,7 +286,7 @@ public class JodeWindow
} }
public static void main(String argv[]) { public static void main(String argv[]) {
Frame frame = new Frame(Decompiler.copyright); Frame frame = new Frame(GlobalOptions.copyright);
JodeWindow win = new JodeWindow(frame); JodeWindow win = new JodeWindow(frame);
String cp = System.getProperty("java.class.path"); String cp = System.getProperty("java.class.path");

Loading…
Cancel
Save