public abstract class AbstractDrillDownFeature extends AbstractCustomFeature
Constructor and Description |
---|
AbstractDrillDownFeature(IFeatureProvider fp)
Creates a new
AbstractDrillDownFeature . |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(ICustomContext context)
Can execute.
|
void |
execute(ICustomContext context)
Execute.
|
java.lang.String |
getName()
Gets the name.
|
boolean |
hasDoneChanges()
Is queried by the framework after a feature has been executed to find out
if this feature should appear in the undo stack of e.g.
|
canExecute, execute, getDescription, getImageId, isAvailable
canUndo, getFeatureProvider, manageFont, manageFont, setProgressCallback, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFeatureProvider
public AbstractDrillDownFeature(IFeatureProvider fp)
AbstractDrillDownFeature
.fp
- the feature providerpublic java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
public void execute(ICustomContext context)
ICustomFeature
context
- the contextpublic boolean canExecute(ICustomContext context)
ICustomFeature
canExecute
in interface ICustomFeature
canExecute
in class AbstractCustomFeature
context
- the contextpublic boolean hasDoneChanges()
IFeature
AbstractFeature
), but features may decide to override this
behavior. Note that this is a dynamic attribute of the feature that is
queried each time after the feature has been executed.
IMPORTANT NOTE: The implementor of the feature is responsible for
correctly implementing this method! It might lead to inconsistencies in
the command stack if this method returns false
although the
feature did changes.
hasDoneChanges
in interface IFeature
hasDoneChanges
in class AbstractFeature
true
if the feature should appear in the undo stack,
false
otherwise