org.eclipse.gef.internal.ui.properties
Class RestoreDefaultPropertyValueCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended byorg.eclipse.gef.internal.ui.properties.RestoreDefaultPropertyValueCommand

public class RestoreDefaultPropertyValueCommand
extends Command


Field Summary
protected  java.lang.Object propertyName
           
protected  java.lang.Object propertyValue
           
protected  boolean resetOnUndo
           
protected  org.eclipse.ui.views.properties.IPropertySource target
           
protected  java.lang.Object undoValue
           
 
Constructor Summary
RestoreDefaultPropertyValueCommand()
           
 
Method Summary
 boolean canExecute()
           
 void execute()
          executes the Command.
 org.eclipse.ui.views.properties.IPropertySource getTarget()
           
 void redo()
          Re-executes the Command.
 void setPropertyId(java.lang.Object pName)
           
 void setPropertyValue(java.lang.Object val)
           
 void setTarget(org.eclipse.ui.views.properties.IPropertySource aTarget)
           
 void undo()
          Undoes the changes performed during execute().
 
Methods inherited from class org.eclipse.gef.commands.Command
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
 

Field Detail

propertyValue

protected java.lang.Object propertyValue

propertyName

protected java.lang.Object propertyName

undoValue

protected java.lang.Object undoValue

resetOnUndo

protected boolean resetOnUndo

target

protected org.eclipse.ui.views.properties.IPropertySource target
Constructor Detail

RestoreDefaultPropertyValueCommand

public RestoreDefaultPropertyValueCommand()
Method Detail

canExecute

public boolean canExecute()
Overrides:
canExecute in class Command
Returns:
true if the command can be executed

execute

public void execute()
Description copied from class: Command
executes the Command. This method should not be called if the Command is not executable.

Overrides:
execute in class Command

getTarget

public org.eclipse.ui.views.properties.IPropertySource getTarget()

setTarget

public void setTarget(org.eclipse.ui.views.properties.IPropertySource aTarget)

redo

public void redo()
Description copied from class: Command
Re-executes the Command. This method should only be called after undo() has been called.

Overrides:
redo in class Command

setPropertyId

public void setPropertyId(java.lang.Object pName)

setPropertyValue

public void setPropertyValue(java.lang.Object val)

undo

public void undo()
Description copied from class: Command
Undoes the changes performed during execute(). This method should only be called after execute has been called, and only when canUndo() returns true.

Overrides:
undo in class Command
See Also:
Command.canUndo()