|
UML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
org.topcased.modeler.uml.sequencediagram.commands.update.UpdateLifelineRepresentsCommand
public class UpdateLifelineRepresentsCommand
Command for updating the represents property associated with a Lifeline Creation 13 juin 06
| Constructor Summary | |
|---|---|
UpdateLifelineRepresentsCommand(org.eclipse.uml2.uml.Lifeline lifeline,
org.eclipse.uml2.uml.Classifier classifier,
org.eclipse.gef.EditDomain domain)
Create a command for updating InstanceSpecification values |
|
| Method Summary | |
|---|---|
void |
execute()
Store the old Property associated with the represents property of the Lifeline and then make the redo |
protected org.eclipse.uml2.uml.ConnectorEnd |
getConnectorEnd(org.eclipse.uml2.uml.Interaction interaction,
org.eclipse.uml2.uml.ConnectableElement prop)
Return the connector end which has the correct property as role, owned by a connector in the interaction |
void |
redo()
Update the lifeline parameters |
void |
undo()
Undo the update |
| Methods inherited from class org.eclipse.gef.commands.Command |
|---|
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateLifelineRepresentsCommand(org.eclipse.uml2.uml.Lifeline lifeline,
org.eclipse.uml2.uml.Classifier classifier,
org.eclipse.gef.EditDomain domain)
lifeline - the current lifeline objectclassifier - the new classifier that represents the lifelinedomain - the edit domain| Method Detail |
|---|
protected org.eclipse.uml2.uml.ConnectorEnd getConnectorEnd(org.eclipse.uml2.uml.Interaction interaction,
org.eclipse.uml2.uml.ConnectableElement prop)
interaction - the owning interactionprop - the property
public void execute()
execute in class org.eclipse.gef.commands.CommandCommand.execute()public void redo()
redo in class org.eclipse.gef.commands.CommandCommand.redo()public void undo()
undo in class org.eclipse.gef.commands.CommandCommand.undo()
|
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.