|
UML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDeleteModelObjectEditPolicy
org.topcased.modeler.uml.sequencediagram.policies.SequenceDeleteModelObjectEditPolicy
public class SequenceDeleteModelObjectEditPolicy
Custom policy for handling the deletion of Message and BehavioExecutionSpecification instances.
| Constructor Summary | |
|---|---|
SequenceDeleteModelObjectEditPolicy()
|
|
| Method Summary | |
|---|---|
org.eclipse.gef.commands.Command |
getCommand(org.eclipse.gef.Request request)
Delegates the command creation to getCommandForMessage(MixedEditDomain, Diagrams, Message) when
the host is a MessageEditPart and
getCommandForBehaviorExecution(MixedEditDomain, Diagrams, BehaviorExecutionSpecification)
when it is a BehaviorExecutionSpecificationEditPart. |
boolean |
understandsRequest(org.eclipse.gef.Request request)
This policy understands delete requests for MessageEditPart and
BehaviorExecutionSpecificationEditPart. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceDeleteModelObjectEditPolicy()
| Method Detail |
|---|
public boolean understandsRequest(org.eclipse.gef.Request request)
MessageEditPart and
BehaviorExecutionSpecificationEditPart.
org.topcased.modeler.edit.policies.DeleteModelObjectEditPolicy#understandsRequest(org.eclipse.gef.Request)public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
getCommandForMessage(MixedEditDomain, Diagrams, Message) when
the host is a MessageEditPart and
getCommandForBehaviorExecution(MixedEditDomain, Diagrams, BehaviorExecutionSpecification)
when it is a BehaviorExecutionSpecificationEditPart.
We need to pass the domain and diagrams objects to those methods since
they're needed to create instances of DeleteModelCommand.
org.topcased.modeler.edit.policies.DeleteModelObjectEditPolicy#getCommand(org.eclipse.gef.Request)
|
UML | |||||||||
| 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.