org.eclipse.gmf.runtime.lite.commands
Class ReplaceNotationalElementCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.gmf.runtime.lite.commands.ReplaceNotationalElementCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command

public class ReplaceNotationalElementCommand
extends org.eclipse.emf.common.command.AbstractCommand


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
ReplaceNotationalElementCommand(org.eclipse.gmf.runtime.notation.View parentView, CreateNotationalElementCommand createCommand, org.eclipse.gmf.runtime.notation.View obsoleteView)
           
 
Method Summary
 boolean canExecute()
           
 boolean canUndo()
           
 void execute()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, prepare, setDescription, setLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplaceNotationalElementCommand

public ReplaceNotationalElementCommand(org.eclipse.gmf.runtime.notation.View parentView,
                                       CreateNotationalElementCommand createCommand,
                                       org.eclipse.gmf.runtime.notation.View obsoleteView)
Method Detail

canExecute

public boolean canExecute()
Specified by:
canExecute in interface org.eclipse.emf.common.command.Command
Overrides:
canExecute in class org.eclipse.emf.common.command.AbstractCommand

canUndo

public boolean canUndo()
Specified by:
canUndo in interface org.eclipse.emf.common.command.Command
Overrides:
canUndo in class org.eclipse.emf.common.command.AbstractCommand

execute

public void execute()

undo

public void undo()
Specified by:
undo in interface org.eclipse.emf.common.command.Command
Overrides:
undo in class org.eclipse.emf.common.command.AbstractCommand

redo

public void redo()


Copyright © 2012. All Rights Reserved.