pl.edu.agh.cast.command
Class CreateAndModifyPropertiesCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by 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

Constructor Summary
CreateAndModifyPropertiesCommand(IPropertyContainer container, Collection<CustomProperty> propertiesToAdd, Map<String,Property<? extends MetaProperty>> propertiesToModify, Map<String,Object> newValues)
          Constructor.
 
Method Summary
 boolean canExecute()
          
 void execute()
          
 void undo()
          
 
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
 

Constructor Detail

CreateAndModifyPropertiesCommand

public CreateAndModifyPropertiesCommand(IPropertyContainer container,
                                        Collection<CustomProperty> propertiesToAdd,
                                        Map<String,Property<? extends MetaProperty>> propertiesToModify,
                                        Map<String,Object> newValues)
Constructor.

Parameters:
container - property container
propertiesToAdd - properties to add
propertiesToModify - properties to modify
newValues - new values of modified properties
Method Detail

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.