sk.uniba.euromath.editor.xmlEditor.commands
Class DeleteDOMIntervalSetCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by sk.uniba.euromath.editor.xmlEditor.commands.DeleteDOMIntervalSetCommand
Direct Known Subclasses:
DeleteSelectionCommand

public class DeleteDOMIntervalSetCommand
extends org.eclipse.gef.commands.Command

Command to delete DOMIntervalSet from document.

Author:
Tomáš Studva 17.8.2006

Field Summary
protected  CaretManager caretManager
          Manager of caret.
protected  int caretMovement
           
protected  Direction direction
           
protected  DOMIntervalSet toDelete
          Set of DOM intervals to delete.
protected  XMLAccess xmlAccess
          XMLAccess instance.
 
Constructor Summary
DeleteDOMIntervalSetCommand(DOMIntervalSet toDelete, XMLAccess xmlAccess, CaretManager caretManager)
          Constructor.
DeleteDOMIntervalSetCommand(DOMIntervalSet toDelete, XMLAccess xmlAccess, CaretManager caretManager, Direction direction, int caretMovement)
          Constructor.
 
Method Summary
 boolean canExecute()
           
 void execute()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toDelete

protected final DOMIntervalSet toDelete
Set of DOM intervals to delete.


xmlAccess

protected final XMLAccess xmlAccess
XMLAccess instance.


caretManager

protected final CaretManager caretManager
Manager of caret.


caretMovement

protected int caretMovement

direction

protected final Direction direction
Constructor Detail

DeleteDOMIntervalSetCommand

public DeleteDOMIntervalSetCommand(DOMIntervalSet toDelete,
                                   XMLAccess xmlAccess,
                                   CaretManager caretManager,
                                   Direction direction,
                                   int caretMovement)
Constructor.

Parameters:
toDelete - DOMintervalSet to delete.

DeleteDOMIntervalSetCommand

public DeleteDOMIntervalSetCommand(DOMIntervalSet toDelete,
                                   XMLAccess xmlAccess,
                                   CaretManager caretManager)
Constructor.

Parameters:
toDelete - DOMintervalSet to delete.
Method Detail

canExecute

public boolean canExecute()
Overrides:
canExecute in class org.eclipse.gef.commands.Command

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command


Copyright © 2003-2006 null. All Rights Reserved.