UML

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

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

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

Command for updating the Value property of a ValueSpecification model object Creation 16 juin 06


Constructor Summary
UpdateValueSpecificationValueCommand(org.eclipse.uml2.uml.ValueSpecification valueSpec, java.lang.String newValue)
          Create a command for updating the value of a given ValueSpecification
 
Method Summary
 void execute()
           
 void redo()
           
 void undo()
           
 
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

UpdateValueSpecificationValueCommand

public UpdateValueSpecificationValueCommand(org.eclipse.uml2.uml.ValueSpecification valueSpec,
                                            java.lang.String newValue)
Create a command for updating the value of a given ValueSpecification

Parameters:
valueSpec - the ValueSpecification model object
newValue - the new value represented as a String
Method Detail

execute

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

redo

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

undo

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

UML

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