fixes for undo mess, setting new document obj for each tab

This commit is contained in:
benfry
2005-05-10 00:29:05 +00:00
parent 739aab7819
commit 217adeba17
6 changed files with 232 additions and 120 deletions

View File

@@ -23,8 +23,10 @@
*/
package processing.app;
import processing.app.syntax.*;
import java.io.*;
import javax.swing.text.*;
import javax.swing.undo.*;
@@ -41,8 +43,11 @@ public class SketchCode {
/** Text of the program text for this tab */
public String program;
/** Document object for this tab */
public SyntaxDocument document;
/** Undo Manager for this tab, each tab keeps track of their own */
public UndoManager undo = new UndoManager();
public UndoManager undo; // = new UndoManager();
// saved positions from last time this tab was used
public int selectionStart;