pl.edu.agh.cast.backward.command
Class EnhanceNodesCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by pl.edu.agh.cast.backward.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

Author:
AGH CAST Team
See Also:
IDiagram.addAttributesFromEntities(java.util.Collection, java.util.Collection, java.util.Map, String, String, String, org.eclipse.core.runtime.IProgressMonitor)

Constructor Summary
EnhanceNodesCommand(IDiagram diagram, 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,
                           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
See Also:
Command.canUndo()

execute

public void execute()

Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

undo

public void undo()

Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.