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); JodeEnvironment env = new JodeEnvironment(cp);
ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream out = new ByteArrayOutputStream();
try { try {
TabbedPrintWriter writer = new TabbedPrintWriter(out, " "); TabbedPrintWriter writer = new TabbedPrintWriter(out);
env.doClass(classField.getText(), writer); env.doClass(classField.getText(), writer);
sourcecodeArea.setText(out.toString()); sourcecodeArea.setText(out.toString());
saveButton.enable(); saveButton.enable();

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

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

Loading…
Cancel
Save