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

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gef.commands.CompoundCommand
          extended by sk.uniba.euromath.editor.xmlEditor.commands.DocumentModifyCompoundCommand

public class DocumentModifyCompoundCommand
extends org.eclipse.gef.commands.CompoundCommand

Compound command for wraping document modifiing commands.

Author:
Tomáš Studva 2.12.2005

Constructor Summary
DocumentModifyCompoundCommand(XMLAccess xmlAccess)
          Constructs an empty CompoundCommand
DocumentModifyCompoundCommand(XMLAccess xmlAccess, String label)
          Constructs an empty CompoundCommand with the specified label.
 
Method Summary
 void execute()
          Wraps holded commands execution with start,end modify.
protected  XMLAccess getXmlAccess()
           
 
Methods inherited from class org.eclipse.gef.commands.CompoundCommand
add, canExecute, canUndo, dispose, getChildren, getCommands, getLabel, isEmpty, redo, size, undo, unwrap
 
Methods inherited from class org.eclipse.gef.commands.Command
chain, getDebugLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentModifyCompoundCommand

public DocumentModifyCompoundCommand(XMLAccess xmlAccess)
Constructs an empty CompoundCommand

Parameters:
xmlAccess - document instance
Since:
2.0

DocumentModifyCompoundCommand

public DocumentModifyCompoundCommand(XMLAccess xmlAccess,
                                     String label)
Constructs an empty CompoundCommand with the specified label.

Parameters:
label - the label for the Command
xmlAccess - document instance
Method Detail

execute

public void execute()
Wraps holded commands execution with start,end modify.

Overrides:
execute in class org.eclipse.gef.commands.CompoundCommand

getXmlAccess

protected XMLAccess getXmlAccess()
Returns:
Returns the xmlAccess.


Copyright © 2003-2006 null. All Rights Reserved.