UML

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

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

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

Command for updating the Signature associated with a Message Creation 14 juin 06


Constructor Summary
UpdateMessageSignatureCommand(org.eclipse.uml2.uml.Message message, org.eclipse.uml2.uml.NamedElement newSignature, org.eclipse.gef.EditDomain domain)
          Create a command for updating the Signature of a given Message
 
Method Summary
 void execute()
          Store the old Property associated with the represents property of the Lifeline and then make the redo
 void redo()
          Update the message 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

UpdateMessageSignatureCommand

public UpdateMessageSignatureCommand(org.eclipse.uml2.uml.Message message,
                                     org.eclipse.uml2.uml.NamedElement newSignature,
                                     org.eclipse.gef.EditDomain domain)
Create a command for updating the Signature of a given Message

Parameters:
message - the current message object
newSignature - the new namedElement that represents the signature of the message
domain - the edit domain
Method Detail

execute

public void execute()
Store the old Property associated with the represents property of the Lifeline and then make the redo

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

redo

public void redo()
Update the message parameters

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

undo

public void undo()
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.