Modelers

org.topcased.modeler.commands
Class DeleteModelCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gef.commands.CompoundCommand
          extended by org.topcased.modeler.commands.DeleteModelCommand

public class DeleteModelCommand
extends org.eclipse.gef.commands.CompoundCommand

A command that erase an object from the model and all the associated graphical objects.
creation : 1 juin 2005


Constructor Summary
DeleteModelCommand(MixedEditDomain domain, Diagrams diagrams, EObject model)
          Constructor
DeleteModelCommand(MixedEditDomain domain, Diagrams diagrams, EObject model, boolean deleteAllRef)
          Constructor
 
Method Summary
protected  org.eclipse.gef.commands.Command createRemoveCommand(java.util.List deletedObjects)
          Create the CompoundCommand that remove model objects
protected  org.eclipse.gef.commands.Command createRemoveDiagramCommand(Diagram diagram)
          Create the remove command for a diagram
protected  org.eclipse.gef.commands.Command createRemoveGraphCommand(java.util.List deletedGraphElts)
          Create the CompoundCommand that remove the GraphElement objects
 
Methods inherited from class org.eclipse.gef.commands.CompoundCommand
add, canExecute, canUndo, dispose, execute, getChildren, getCommands, getLabel, isEmpty, redo, size, undo, unwrap
 
Methods inherited from class org.eclipse.gef.commands.Command
chain, getDebugLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteModelCommand

public DeleteModelCommand(MixedEditDomain domain,
                          Diagrams diagrams,
                          EObject model,
                          boolean deleteAllRef)
Constructor

Parameters:
domain -
diagrams -
model -
deleteAllRef -

DeleteModelCommand

public DeleteModelCommand(MixedEditDomain domain,
                          Diagrams diagrams,
                          EObject model)
Constructor

Parameters:
domain -
diagrams -
model -
Method Detail

createRemoveDiagramCommand

protected org.eclipse.gef.commands.Command createRemoveDiagramCommand(Diagram diagram)
Create the remove command for a diagram

Parameters:
diagram - the diagram to remove
Returns:
the command or null if action cannot be performed

createRemoveCommand

protected org.eclipse.gef.commands.Command createRemoveCommand(java.util.List deletedObjects)
Create the CompoundCommand that remove model objects

Parameters:
deletedObjects - the list that contain the model objects to remove
Returns:
the CompoundCommand

createRemoveGraphCommand

protected org.eclipse.gef.commands.Command createRemoveGraphCommand(java.util.List deletedGraphElts)
Create the CompoundCommand that remove the GraphElement objects

Parameters:
deletedGraphElts - the list that contain the graphElements to remove
Returns:
the CompoundCommand

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.