pl.edu.agh.cast.schema.editor.command
Class ChangeElementPropertyCommand
java.lang.Object
org.eclipse.gef.commands.Command
pl.edu.agh.cast.schema.editor.command.ChangeElementPropertyCommand
public class ChangeElementPropertyCommand
- extends org.eclipse.gef.commands.Command
Command which changes the given property value.
Note: The property to change must be writable, otherwise IllegalArgumentException
is thrown
during command instantiation.
- Author:
- AGH CAST Team
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, 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 |
ChangeElementPropertyCommand
public ChangeElementPropertyCommand(Property<? extends MetaProperty> property,
String newValue)
- Constructor.
- Parameters:
property
- property to changenewValue
- new property value
canUndo
public boolean canUndo()
-
- 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()
undo
public void undo()
-
- Overrides:
undo
in class org.eclipse.gef.commands.Command
- See Also:
Command.undo()
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.