org.eclipse.gmf.runtime.lite.commands
Class RemoveNotationalElementCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.gmf.runtime.lite.commands.RemoveNotationalElementCommand
- All Implemented Interfaces:
- org.eclipse.emf.common.command.Command
- Direct Known Subclasses:
- RemoveNotationalEdgeCommand
public class RemoveNotationalElementCommand
- extends org.eclipse.emf.common.command.AbstractCommand
| Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand |
org.eclipse.emf.common.command.AbstractCommand.NonDirtying |
| Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
| Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
canExecute, chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString |
RemoveNotationalElementCommand
public RemoveNotationalElementCommand(org.eclipse.gmf.runtime.notation.View parentView,
org.eclipse.gmf.runtime.notation.View childView)
prepare
protected boolean prepare()
- Overrides:
prepare 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()
sweepElement
protected void sweepElement()
redo
public void redo()
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
restoreElement
protected void restoreElement()
getChildView
protected final org.eclipse.gmf.runtime.notation.View getChildView()
getParent
protected final org.eclipse.gmf.runtime.notation.View getParent()
Copyright © 2012. All Rights Reserved.