org.astrogrid.desktop.modules.adqlEditor.commands
Class PasteIntoCommand
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
org.astrogrid.desktop.modules.adqlEditor.commands.PasteIntoCommand
- All Implemented Interfaces:
- Serializable, UndoableEdit, CommandExec, CommandInfo
public class PasteIntoCommand
- extends AbstractCommand
- Author:
- jl99@star.le.ac.uk
- See Also:
- Serialized Form
| Methods inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand |
addToEditStore, exchangeInEditStore, exchangeInEditStore, getChildDisplayName, getChildElement, getChildElementName, getChildEntry, getChildIndex, getChildMaxOccurs, getChildMinOccurs, getChildObject, getChildToken, getChildType, getFromEditStore, getMessages, getParentDisplayName, getParentElementName, getParentEntry, getParentObject, getParentToken, getParentType, isChildCascadeable, isChildColumnLinked, isChildDisallowed, isChildDrivenByEnumeratedAttribute, isChildDrivenByEnumeratedElement, isChildEnabled, isChildHeldInArray, isChildInPatternContext, isChildMandatorySingleton, isChildOptionalSingleton, isChildSupportedType, isChildTableLinked, isInitializedStatusGood, isInsertableIntoArray, isParentSuitablePasteTargetFor, setMessages |
log
private static final org.apache.commons.logging.Log log
source
private CopyHolder source
PasteIntoCommand
public PasteIntoCommand(AdqlTree adqlTree,
UndoManager undoManager,
AdqlNode target,
SchemaType childType,
CopyHolder source)
- Parameters:
target - source -
execute
public CommandExec.Result execute()
- Specified by:
execute in interface CommandExec- Overrides:
execute in class AbstractCommand
_execute
private CommandExec.Result _execute()
_unexecute
private CommandExec.Result _unexecute()
die
public void die()
- Specified by:
die in interface UndoableEdit- Overrides:
die in class AbstractUndoableEdit
redo
public void redo()
throws CannotRedoException
- Specified by:
redo in interface UndoableEdit- Overrides:
redo in class AbstractUndoableEdit
- Throws:
CannotRedoException
undo
public void undo()
throws CannotUndoException
- Specified by:
undo in interface UndoableEdit- Overrides:
undo in class AbstractUndoableEdit
- Throws:
CannotUndoException
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName in interface UndoableEdit- Overrides:
getPresentationName in class AbstractUndoableEdit
toString
public String toString()
- Overrides:
toString in class AbstractCommand
Copyright © 2002-2010 AstroGrid. All Rights Reserved.