Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.ceditor
Class UndoWrapperCommand

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.ide.ceditor.UndoWrapperCommand


public final class UndoWrapperCommand
extends Command

The UndoWrapperCommand class implements the IDE command and is used by the Code Editor to wrap undo messages generated by user typing. It relies on the updater to notify observers of the Node with an UpdateMessager.

See Also:
Command

Field Summary

 

Fields inherited from class oracle.ide.controller.Command
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type

 

Constructor Summary
UndoWrapperCommand(javax.swing.undo.UndoableEdit edit, java.lang.Object updater)
          Constructs a new UndoWrapperCommand based on the given edit and editor.

 

Method Summary
 int doit()
          Apply the change represented by edit.
 java.lang.String getName()
          Gets the name of the command to display as the action to undo
 int undo()
          Undo the change represented by the edit.

 

Methods inherited from class oracle.ide.controller.Command
enableConfirmation, getAffectedNodes, getContext, getData, getId, getType, isGlobal, setContext, setData

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

UndoWrapperCommand

public UndoWrapperCommand(javax.swing.undo.UndoableEdit edit,
                          java.lang.Object updater)
Constructs a new UndoWrapperCommand based on the given edit and editor.
Parameters:
edit - the edit change
updater - the node updater to store

Method Detail

doit

public int doit()
Apply the change represented by edit.
Specified by:
doit in class Command

undo

public int undo()
Undo the change represented by the edit.
Overrides:
undo in class Command

getName

public java.lang.String getName()
Gets the name of the command to display as the action to undo
Overrides:
getName in class Command
Returns:
the name of this command

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.