pl.edu.agh.cast.command
Class EnhanceNodesCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by pl.edu.agh.cast.command.EnhanceNodesCommand

public class EnhanceNodesCommand
extends org.eclipse.gef.commands.Command

A command that is to enhance Nodes 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

Constructor Summary
EnhanceNodesCommand(IDiagram diagram, pl.edu.agh.cast.model.base.IDataSet dataSet)
          Command constructor.
 
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
 

Constructor Detail

EnhanceNodesCommand

public EnhanceNodesCommand(IDiagram diagram,
                           pl.edu.agh.cast.model.base.IDataSet dataSet)
Command constructor.

Parameters:
diagram - the diagram to enhance
dataSet - enhancing data set
Method Detail

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.