org.astrogrid.desktop.modules.adqlEditor.commands
Class PasteIntoCommand

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.astrogrid.desktop.modules.adqlEditor.commands.CommandExec
CommandExec.Result
 
Field Summary
private static org.apache.commons.logging.Log log
           
private  CopyHolder source
           
 
Fields inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
adqlTree, childElement, childToken, childType, maxOccurs, minOccurs, parentToken, parentType, undoManager
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Fields inherited from interface org.astrogrid.desktop.modules.adqlEditor.commands.CommandExec
ERROR, FAILED, OK, WARNING
 
Constructor Summary
PasteIntoCommand(AdqlTree adqlTree, UndoManager undoManager, AdqlNode target, SchemaType childType, CopyHolder source)
           
 
Method Summary
private  CommandExec.Result _execute()
           
private  CommandExec.Result _unexecute()
           
 void die()
           
 CommandExec.Result execute()
           
 String getPresentationName()
           
 void redo()
           
 String toString()
           
 void undo()
           
 
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
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

source

private CopyHolder source
Constructor Detail

PasteIntoCommand

public PasteIntoCommand(AdqlTree adqlTree,
                        UndoManager undoManager,
                        AdqlNode target,
                        SchemaType childType,
                        CopyHolder source)
Parameters:
target -
source -
Method Detail

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.