|
SysML | |||||||||
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.sysml.command.DefineProfileCommand
public class DefineProfileCommand
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 |
---|
public DefineProfileCommand(org.eclipse.uml2.uml.Profile prof, java.util.Map data, java.util.Map oldData)
prof
- the profiledata
- the new datasoldData
- the old datasMethod Detail |
---|
protected void setValues()
protected void switchValues()
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
public void redo()
redo
in class org.eclipse.gef.commands.Command
Command.redo()
|
SysML | |||||||||
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.