public abstract class AbstractCustomFeature extends AbstractFeature implements ICustomFeature
| Constructor and Description |
|---|
AbstractCustomFeature(IFeatureProvider fp)
Creates a new
AbstractCustomFeature. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context.
|
boolean |
canExecute(ICustomContext context)
Can execute.
|
void |
execute(IContext context)
Executes the current feature with the given context.
|
java.lang.String |
getDescription()
Gets the description.
|
java.lang.String |
getImageId()
Gets the image id.
|
boolean |
isAvailable(IContext context)
Decides if the current feature is available with the given context.
|
canUndo, getFeatureProvider, getName, hasDoneChanges, manageFont, manageFont, setProgressCallback, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitexecutecanUndo, hasDoneChangesgetFeatureProviderpublic AbstractCustomFeature(IFeatureProvider fp)
AbstractCustomFeature.fp - the feature providerpublic java.lang.String getDescription()
IDescriptiongetDescription in interface IDescriptiongetDescription in class AbstractFeaturepublic boolean canExecute(ICustomContext context)
ICustomFeaturecanExecute in interface ICustomFeaturecontext - the contextpublic boolean isAvailable(IContext context)
IFeatureisAvailable in interface IFeatureisAvailable in class AbstractFeaturecontext - this is the general input for this methodIContextpublic final boolean canExecute(IContext context)
IFeaturecanExecute in interface IFeaturecontext - this is the general input for this methodIContextpublic void execute(IContext context)
IFeaturepublic java.lang.String getImageId()
ICustomFeaturegetImageId in interface ICustomFeature