home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / BaseSourcePane$SourceUndoManager.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  891 b   |  23 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseUndoManager;
  4. import java.util.Stack;
  5. import javax.swing.undo.UndoManager;
  6.  
  7. public class BaseSourcePane$SourceUndoManager extends BaseUndoManager {
  8.    // $FF: synthetic field
  9.    final BaseSourcePane this$0;
  10.    Stack toUndo;
  11.    Stack toRedo;
  12.  
  13.    public BaseSourcePane$SourceUndoManager(BaseSourcePane var1) {
  14.       this.this$0 = var1;
  15.       this.toUndo = new Stack();
  16.       this.toRedo = new Stack();
  17.    }
  18.  
  19.    public void trimAllExceptFirst() {
  20.       ((UndoManager)this).trimEdits(1, super.edits.size() - 1);
  21.    }
  22. }
  23.