pl.edu.agh.cast.command
Class EnhanceNodesCommand
java.lang.Object
org.eclipse.gef.commands.Command
pl.edu.agh.cast.command.EnhanceNodesCommand
public class EnhanceNodesCommand
- extends org.eclipse.gef.commands.Command
A command that is to enhance Node
s from a IDiagram
with
attributes from matching entities of given IDataSet
. This operation
is not UnDo-able!
For details see
IDiagram.addAttributesFromEntities(java.util.Collection, java.util.Collection, java.util.Map, String, String, String, org.eclipse.core.runtime.IProgressMonitor)
- Author:
- tmilos
Method Summary |
boolean |
canUndo()
This method always returns false . |
void |
execute()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhanceNodesCommand
public EnhanceNodesCommand(IDiagram diagram,
pl.edu.agh.cast.model.base.IDataSet dataSet)
- Command constructor.
- Parameters:
diagram
- the diagram to enhancedataSet
- enhancing data set
canUndo
public boolean canUndo()
- This method always returns
false
.
- Overrides:
canUndo
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
Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.