|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
org.eclipse.gef.commands.CompoundCommand
org.topcased.modeler.commands.DeleteModelCommand
public class DeleteModelCommand
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 |
---|
public DeleteModelCommand(MixedEditDomain domain, Diagrams diagrams, EObject model, boolean deleteAllRef)
domain
- diagrams
- model
- deleteAllRef
- public DeleteModelCommand(MixedEditDomain domain, Diagrams diagrams, EObject model)
domain
- diagrams
- model
- Method Detail |
---|
protected org.eclipse.gef.commands.Command createRemoveDiagramCommand(Diagram diagram)
diagram
- the diagram to remove
null
if action cannot be performedprotected org.eclipse.gef.commands.Command createRemoveCommand(java.util.List deletedObjects)
deletedObjects
- the list that contain the model objects to remove
protected org.eclipse.gef.commands.Command createRemoveGraphCommand(java.util.List deletedGraphElts)
deletedGraphElts
- the list that contain the graphElements to remove
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.