home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / text / DefaultStyledDocument$ChangeUpdateRunnable.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.1 KB  |  26 lines

  1. package javax.swing.text;
  2.  
  3. import javax.swing.event.DocumentEvent.EventType;
  4. import javax.swing.undo.CompoundEdit;
  5.  
  6. class DefaultStyledDocument$ChangeUpdateRunnable implements Runnable {
  7.    // $FF: synthetic field
  8.    private final DefaultStyledDocument this$0;
  9.  
  10.    DefaultStyledDocument$ChangeUpdateRunnable(DefaultStyledDocument var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public void run() {
  15.       try {
  16.          this.this$0.writeLock();
  17.          AbstractDocument.DefaultDocumentEvent var1 = new AbstractDocument.DefaultDocumentEvent(this.this$0, 0, this.this$0.getLength(), EventType.CHANGE);
  18.          ((CompoundEdit)var1).end();
  19.          this.this$0.fireChangedUpdate(var1);
  20.       } finally {
  21.          this.this$0.writeUnlock();
  22.       }
  23.  
  24.    }
  25. }
  26.