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, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute
canUndo, hasDoneChanges
getFeatureProvider
public AbstractCustomFeature(IFeatureProvider fp)
AbstractCustomFeature
.fp
- the feature providerpublic java.lang.String getDescription()
IDescription
getDescription
in interface IDescription
getDescription
in class AbstractFeature
public boolean canExecute(ICustomContext context)
ICustomFeature
canExecute
in interface ICustomFeature
context
- the contextpublic boolean isAvailable(IContext context)
IFeature
isAvailable
in interface IFeature
isAvailable
in class AbstractFeature
context
- this is the general input for this methodIContext
public final boolean canExecute(IContext context)
IFeature
canExecute
in interface IFeature
context
- this is the general input for this methodIContext
public void execute(IContext context)
IFeature
public java.lang.String getImageId()
ICustomFeature
getImageId
in interface ICustomFeature