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

Loading…
Cancel
Save