|
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.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
Updated : 4 feb 2008
| 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<java.lang.Object> 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<GraphElement> deletedGraphElts)
Create the CompoundCommand that remove the GraphElement objects |
protected org.eclipse.gef.commands.CommandStack |
getTemporaryCommandStack()
Get the temporary CommandStack |
| Methods inherited from class org.topcased.modeler.commands.CompoundCommand |
|---|
add, addExecuted, canExecute, execute |
| Methods inherited from class org.eclipse.gef.commands.CompoundCommand |
|---|
canUndo, dispose, 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)
domain - diagrams - model -
public DeleteModelCommand(MixedEditDomain domain,
Diagrams diagrams,
EObject model,
boolean deleteAllRef)
domain - diagrams - model - deleteAllRef - | 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<java.lang.Object> deletedObjects)
deletedObjects - the list that contain the model objects to remove
protected org.eclipse.gef.commands.Command createRemoveGraphCommand(java.util.List<GraphElement> deletedGraphElts)
deletedGraphElts - the list that contain the graphElements to remove
protected org.eclipse.gef.commands.CommandStack getTemporaryCommandStack()
|
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.