pl.edu.agh.cast.command
Class RemoveMetaPropertiesCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by pl.edu.agh.cast.command.RemoveMetaPropertiesCommand

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

Removes permanently given meta property and all associated properties. This command cannot be undone.

Author:
AGH CAST Team

Constructor Summary
RemoveMetaPropertiesCommand(IPropertyContainer container, Collection<MetaProperty> metaProperties)
          Constructor.
 
Method Summary
 boolean canUndo()
          Always returns false as the commend cannot be undone.
 void execute()
          
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveMetaPropertiesCommand

public RemoveMetaPropertiesCommand(IPropertyContainer container,
                                   Collection<MetaProperty> metaProperties)
Constructor.

Parameters:
container -
metaProperties -
Method Detail

canUndo

public boolean canUndo()
Always returns false as the commend cannot be undone.

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

execute

public void execute()

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


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.