コード例 #1
0
ファイル: SwingContent.java プロジェクト: afmckinney/ai2-kawa
 public void redo() throws CannotUndoException {
   super.redo();
   try {
     doit(isInsertion);
   } catch (BadLocationException ex) {
     throw new CannotRedoException();
   }
 }
コード例 #2
0
  /** the undo method */
  public void undo() {
    super.undo();

    if (faee.getEventType() == FragmentAtomEditEvent.FragmentAtomEditEventType.ATOM_ADDED) {
      faee.getFragment().removeFragmentAtom(faee.getFragmentAtom());
    } else if (faee.getEventType()
        == FragmentAtomEditEvent.FragmentAtomEditEventType.ATOM_REMOVED) {
      faee.getFragment().addFragmentAtom(faee.getFragmentAtom());
    } // end if

    // trigger update listeners
    faee.getFragmentationScheme().getFragmentList().triggerListeners();
  }
コード例 #3
0
ファイル: JEditTextArea.java プロジェクト: zeph/grinder
    public void redo() throws CannotRedoException {
      super.redo();

      select(start, end);
    }
コード例 #4
0
ファイル: JEditTextArea.java プロジェクト: zeph/grinder
    public void undo() throws CannotUndoException {
      super.undo();

      select(start, end);
    }
コード例 #5
0
ファイル: StateEdit.java プロジェクト: GregBowyer/Hotspot
 /** Tells the edited object to apply the state after the edit */
 public void redo() {
   super.redo();
   this.object.restoreState(postState);
 }
コード例 #6
0
ファイル: StateEdit.java プロジェクト: GregBowyer/Hotspot
 /** Tells the edited object to apply the state prior to the edit */
 public void undo() {
   super.undo();
   this.object.restoreState(preState);
 }