new tabbedprintwriter

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@194 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent ea2addb1b6
commit 9433441a87
  1. 2
      jode/JodeAppletOneZero.java
  2. 2
      jode/jode/JodeWindow.java
  3. 4
      jode/jode/decompiler/MethodAnalyzer.java

@ -162,7 +162,7 @@ public class JodeAppletOneZero extends Applet implements Runnable {
JodeEnvironment env = new JodeEnvironment(cp);
ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
TabbedPrintWriter writer = new TabbedPrintWriter(out, " ");
TabbedPrintWriter writer = new TabbedPrintWriter(out);
env.doClass(classField.getText(), writer);
sourcecodeArea.setText(out.toString());
saveButton.enable();

@ -147,7 +147,7 @@ public class JodeWindow
JodeEnvironment env = new JodeEnvironment(cp);
ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
TabbedPrintWriter writer = new TabbedPrintWriter(out, " ");
TabbedPrintWriter writer = new TabbedPrintWriter(out);
env.doClass(lastClassName, writer);
sourcecodeArea.setText(out.toString());
saveButton.setEnabled(true);

@ -198,11 +198,11 @@ public class MethodAnalyzer implements Analyzer {
}
}
if (code != null) {
writer.println(" {");
writer.openBrace();
writer.tab();
code.dumpSource(writer);
writer.untab();
writer.println("}");
writer.closeBrace();
} else
writer.println(";");
}

Loading…
Cancel
Save