public class GenericFeatureCommandWithContext extends FeatureCommandWithContext
Constructor and Description |
---|
GenericFeatureCommandWithContext(IFeature feature,
IContext context)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Can execute.
|
boolean |
canUndo()
Can undo.
|
boolean |
execute()
Execute.
|
boolean |
undo()
Undo.
|
getContext
getDescription, getFeature, getFeatureProvider, isReadOnly
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeature
public boolean canExecute()
ICommand
public boolean execute()
ICommand
public boolean canUndo()
ICommand
canUndo
in interface ICommand
canUndo
in class FeatureCommandWithContext
public boolean undo()
ICommand
undo
in interface ICommand
undo
in class FeatureCommandWithContext