diff --git a/java/src/processing/mode/java/JavaEditor.java b/java/src/processing/mode/java/JavaEditor.java index 481a64d01..99867fc0a 100644 --- a/java/src/processing/mode/java/JavaEditor.java +++ b/java/src/processing/mode/java/JavaEditor.java @@ -2559,8 +2559,6 @@ public class JavaEditor extends Editor { public String[] baseCode; - final static int SPACE_AMOUNT = 0; - UDPTweakClient tweakClient; @@ -2575,7 +2573,7 @@ public class JavaEditor extends Editor { getJavaTextArea().stopInteractiveMode(); // remove space from the code (before and after) - removeSpacesFromCode(); + //removeSpacesFromCode(); // check which tabs were modified boolean modified = false; @@ -2624,9 +2622,8 @@ public class JavaEditor extends Editor { // save the sketch try { sketch.save(); - } - catch (IOException e) { - Base.showWarning("Tweak Mode", "Could not save the modified sketch!", e); + } catch (IOException e) { + Base.showWarning("Error", "Could not save the modified sketch.", e); } // repaint the editor header (show the modified tabs) @@ -2665,16 +2662,9 @@ public class JavaEditor extends Editor { public void initBaseCode() { SketchCode[] code = sketch.getCode(); - String space = new String(); - - for (int i=0; i