org.eclipse.uml2.edit.util
Class ChangeCommand

java.lang.Object
  extended byorg.eclipse.emf.common.command.AbstractCommand
      extended byorg.eclipse.uml2.edit.util.ChangeCommand
All Implemented Interfaces:
Command

public class ChangeCommand
extends AbstractCommand


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
ChangeCommand(EditingDomain editingDomain, Runnable runnable)
           
ChangeCommand(EditingDomain editingDomain, Runnable runnable, String label)
           
ChangeCommand(EditingDomain editingDomain, Runnable runnable, String label, String description)
           
 
Method Summary
 boolean canUndo()
           
 void execute()
           
protected  ChangeDescription getChangeDescription()
           
 EditingDomain getEditingDomain()
           
protected  Runnable getRunnable()
           
protected  boolean prepare()
           
 void redo()
           
protected  void setChangeDescription(ChangeDescription changeDescription)
           
 void undo()
           
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeCommand

public ChangeCommand(EditingDomain editingDomain,
                     Runnable runnable)

ChangeCommand

public ChangeCommand(EditingDomain editingDomain,
                     Runnable runnable,
                     String label)

ChangeCommand

public ChangeCommand(EditingDomain editingDomain,
                     Runnable runnable,
                     String label,
                     String description)
Method Detail

getEditingDomain

public EditingDomain getEditingDomain()

getRunnable

protected Runnable getRunnable()

getChangeDescription

protected ChangeDescription getChangeDescription()

setChangeDescription

protected void setChangeDescription(ChangeDescription changeDescription)

prepare

protected boolean prepare()

canUndo

public boolean canUndo()

execute

public void execute()

undo

public void undo()

redo

public void redo()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.