pl.edu.agh.cast.command
Class CreateAndModifyPropertiesCommand
java.lang.Object
org.eclipse.gef.commands.Command
pl.edu.agh.cast.command.CreateAndModifyPropertiesCommand
public class CreateAndModifyPropertiesCommand
- extends org.eclipse.gef.commands.Command
Command which consists of the two following commands: CreatePropertiesCommand
and
ModfiyPropertiesCommand
.
- Author:
- AGH CAST Team
Methods inherited from class org.eclipse.gef.commands.Command |
canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateAndModifyPropertiesCommand
public CreateAndModifyPropertiesCommand(IPropertyContainer container,
Collection<CustomProperty> propertiesToAdd,
Map<String,Property<? extends MetaProperty>> propertiesToModify,
Map<String,Object> newValues)
- Constructor.
- Parameters:
container
- property containerpropertiesToAdd
- properties to addpropertiesToModify
- properties to modifynewValues
- new values of modified properties
execute
public void execute()
-
- Overrides:
execute
in class org.eclipse.gef.commands.Command
- See Also:
Command.execute()
undo
public void undo()
-
- Overrides:
undo
in class org.eclipse.gef.commands.Command
- See Also:
Command.undo()
canExecute
public boolean canExecute()
-
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command
- See Also:
Command.canExecute()
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.