pl.edu.agh.cast.schema.editor.command
Class AddConnectionCommand

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

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

Command which adds new connection to a diagram.

Author:
AGH CAST Team

Constructor Summary
AddConnectionCommand()
          Constructor.
AddConnectionCommand(ISchemaDataSet modelDataSet, ISchemaConnection connection, ISchemaNode source, ISchemaNode target)
          Constructor.
 
Method Summary
 void execute()
          
 void undo()
          
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, 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

AddConnectionCommand

public AddConnectionCommand()
Constructor.


AddConnectionCommand

public AddConnectionCommand(ISchemaDataSet modelDataSet,
                            ISchemaConnection connection,
                            ISchemaNode source,
                            ISchemaNode target)
Constructor.

Parameters:
modelDataSet - model to which new connection will be added
connection - connection to add
source - source node of new connection
target - target node of new connection
Method Detail

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.