|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
org.eclipse.gmt.umlx.editor.command.AbstractCommand
org.eclipse.gmt.umlx.editor.commands.AbstractValueCommand
org.eclipse.gmt.umlx.editor.commands.ResetValueCommand
public class ResetValueCommand
A Command used to restore the default value of a property.
Constructor Summary | |
---|---|
ResetValueCommand(java.lang.String propLabel,
IModelPropertyDescriptor descriptor)
Default Constructor: Sets the label for the Command |
Method Summary | |
---|---|
boolean |
canExecute()
Returns true IFF:1) the target and property have been specified 2) the property has a default value 3) the value set for that property is not the default |
Methods inherited from class org.eclipse.gmt.umlx.editor.commands.AbstractValueCommand |
---|
toString |
Methods inherited from class org.eclipse.gmt.umlx.editor.command.AbstractCommand |
---|
addSelectedObjects, canUndo, couldNotUnlock, diagnoseCannotExecute, dispose, execute, getCommand, prepare, prepare, redo, requestModification, undo |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
chain, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gmt.umlx.editor.command.IAbstractCommand |
---|
getLabel |
Constructor Detail |
---|
public ResetValueCommand(java.lang.String propLabel, IModelPropertyDescriptor descriptor)
Method Detail |
---|
public boolean canExecute()
true
IFF:
canExecute
in interface IAbstractCommand
canExecute
in class AbstractCommand
Command.canExecute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |