de.cau.cs.kieler.synccharts.diagram.custom.commands
Class CommandFactory

java.lang.Object
  extended by de.cau.cs.kieler.synccharts.diagram.custom.commands.CommandFactory

public class CommandFactory
extends Object

Creates the cut, copy and paste commands from ksbase.

Rating red

Constructor Summary
CommandFactory()
           
 
Method Summary
static ICommand buildCopyCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
          Build a new copy command.
static ICommand buildCutCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
          Build a new cut command.
static ICommand buildPasteCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
          Build a new paste command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandFactory

public CommandFactory()
Method Detail

buildCopyCommand

public static ICommand buildCopyCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
                                        List<EObject> selection)
Build a new copy command.

Parameters:
part - the editor
selection - the selection
Returns:
the command

buildCutCommand

public static ICommand buildCutCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
                                       List<EObject> selection)
Build a new cut command.

Parameters:
part - the editor
selection - the selection
Returns:
the command

buildPasteCommand

public static ICommand buildPasteCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
                                         List<EObject> selection)
Build a new paste command.

Parameters:
part - the editor
selection - the selection
Returns:
the command