UML

org.topcased.modeler.uml.sequencediagram.commands.update
Class LifelineUpdateCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.uml.sequencediagram.commands.update.LifelineUpdateCommand

Deprecated. Use the UpdateLifelineRepresentsCommand instead

public class LifelineUpdateCommand
extends org.eclipse.gef.commands.Command

Command to update the lifeline parameters


Constructor Summary
LifelineUpdateCommand(org.eclipse.uml2.uml.Lifeline life, org.eclipse.uml2.uml.Classifier classif, org.eclipse.gef.EditDomain domain)
          Deprecated. Create a command for updating InstanceSpecification values
 
Method Summary
 void execute()
          Deprecated. just redo
protected  org.eclipse.uml2.uml.ConnectorEnd getConnectorEnd(org.eclipse.uml2.uml.Interaction interaction, org.eclipse.uml2.uml.Property prop)
          Deprecated. Return the connector end which has the correct property as role, owned by a connector int the interaction
protected  org.eclipse.uml2.uml.Property getProperty(org.eclipse.uml2.uml.Collaboration collaboration, org.eclipse.uml2.uml.Classifier c)
          Deprecated. use the getOwnedAttribute() method of the StructuredClassifier class defined in UML
 void redo()
          Deprecated. Update the lifeline parameters
 void undo()
          Deprecated. 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

LifelineUpdateCommand

public LifelineUpdateCommand(org.eclipse.uml2.uml.Lifeline life,
                             org.eclipse.uml2.uml.Classifier classif,
                             org.eclipse.gef.EditDomain domain)
Deprecated. 
Create a command for updating InstanceSpecification values

Parameters:
life - the current lifeline object
classif - the new classifier that represents the lifeline
domain - the edit domain
Method Detail

getProperty

protected org.eclipse.uml2.uml.Property getProperty(org.eclipse.uml2.uml.Collaboration collaboration,
                                                    org.eclipse.uml2.uml.Classifier c)
Deprecated. use the getOwnedAttribute() method of the StructuredClassifier class defined in UML

Return the property own by the collaboration which is typed by the classifier. If the property is not found, create it.

Parameters:
collaboration - the owning collaboration
c - the wanted classifer
Returns:
the searched property

getConnectorEnd

protected org.eclipse.uml2.uml.ConnectorEnd getConnectorEnd(org.eclipse.uml2.uml.Interaction interaction,
                                                            org.eclipse.uml2.uml.Property prop)
Deprecated. 
Return the connector end which has the correct property as role, owned by a connector int the interaction

Parameters:
interaction - the owning interaction
prop - the property
Returns:
the ConnectorEnd

execute

public void execute()
Deprecated. 
just redo

Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

redo

public void redo()
Deprecated. 
Update the lifeline parameters

Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

undo

public void undo()
Deprecated. 
Undo the update

Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()

UML

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