@@ -54,7 +54,7 @@ public class SketchCode {
5454
5555 /** Last time this tab was visited */
5656 long visited ;
57-
57+
5858 /** The last time this tab was saved to disk */
5959 private long lastModified ;
6060
@@ -136,7 +136,7 @@ protected boolean renameTo(File what, String ext) {
136136
137137
138138 public void copyTo (File dest ) throws IOException {
139- Base .saveFile (program , dest );
139+ Util .saveFile (program , dest );
140140 }
141141
142142
@@ -179,7 +179,7 @@ public String getSavedProgram() {
179179
180180
181181 public int getLineCount () {
182- return Base .countLines (program );
182+ return Util .countLines (program );
183183 }
184184
185185
@@ -275,7 +275,7 @@ public long lastVisited() {
275275 * Load this piece of code from a file.
276276 */
277277 public void load () throws IOException {
278- program = Base .loadFile (file );
278+ program = Util .loadFile (file );
279279
280280 // Remove NUL characters because they'll cause problems,
281281 // and their presence is very difficult to debug.
@@ -309,7 +309,7 @@ public void save() throws IOException {
309309 // TODO re-enable history
310310 //history.record(s, SketchHistory.SAVE);
311311
312- Base .saveFile (program , file );
312+ Util .saveFile (program , file );
313313 savedProgram = program ;
314314 lastModified = file .lastModified ();
315315 setModified (false );
@@ -320,7 +320,7 @@ public void save() throws IOException {
320320 * Save this file to another location, used by Sketch.saveAs()
321321 */
322322 public void saveAs (File newFile ) throws IOException {
323- Base .saveFile (program , newFile );
323+ Util .saveFile (program , newFile );
324324 savedProgram = program ;
325325 file = newFile ;
326326 makePrettyName ();
@@ -336,7 +336,7 @@ public void saveAs(File newFile) throws IOException {
336336 public void setFolder (File sketchFolder ) {
337337 file = new File (sketchFolder , file .getName ());
338338 }
339-
339+
340340 /**
341341 * Used to determine whether this file was modified externally
342342 * @return The time the file was last modified
0 commit comments