UML

org.topcased.modeler.uml.commands
Class DefineProfileCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.uml.commands.DefineProfileCommand

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

TODO completly refactor and redesign this class Class that create a command in order to update profile settings
creation : 31 may 2005


Constructor Summary
DefineProfileCommand(org.eclipse.uml2.uml.Profile prof, java.util.Map data, java.util.Map oldData)
          Create a command for updating parameters on a given profile
 
Method Summary
 void execute()
          Set the values
 void redo()
          Set the new values
protected  void setValues()
          Set the values
protected  void switchValues()
          Switch the old and new values
 void undo()
          set the old values
 
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

DefineProfileCommand

public DefineProfileCommand(org.eclipse.uml2.uml.Profile prof,
                            java.util.Map data,
                            java.util.Map oldData)
Create a command for updating parameters on a given profile

Parameters:
prof - the profile
data - the new datas
oldData - the old datas
Method Detail

setValues

protected void setValues()
Set the values


switchValues

protected void switchValues()
Switch the old and new values


execute

public void execute()
Set the values

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

undo

public void undo()
set the old values

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

redo

public void redo()
Set the new values

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

UML

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