public abstract class AbstractCreateFeature extends AbstractFeature implements ICreateFeature
Constructor and Description |
---|
AbstractCreateFeature(IFeatureProvider fp,
java.lang.String name,
java.lang.String description)
Creates a new
AbstractCreateFeature . |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context.
|
void |
execute(IContext context)
Executes the current feature with the given context.
|
java.lang.String |
getCreateDescription()
Gets the create description.
|
java.lang.String |
getCreateImageId()
Gets the create image id.
|
java.lang.String |
getCreateLargeImageId()
Gets the create large image id.
|
java.lang.String |
getCreateName()
Gets the create name.
|
java.lang.String |
getDescription()
Gets the description.
|
java.lang.String |
getName()
Gets the name.
|
canUndo, getFeatureProvider, hasDoneChanges, isAvailable, manageFont, manageFont, setProgressCallback, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canUndo, hasDoneChanges, isAvailable
getFeatureProvider
public AbstractCreateFeature(IFeatureProvider fp, java.lang.String name, java.lang.String description)
AbstractCreateFeature
.fp
- feature providername
- the namedescription
- the descriptionpublic java.lang.String getCreateDescription()
ICreateInfo
getCreateDescription
in interface ICreateInfo
public java.lang.String getCreateName()
ICreateInfo
getCreateName
in interface ICreateInfo
public 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 getCreateImageId()
ICreateInfo
getCreateImageId
in interface ICreateInfo
public java.lang.String getCreateLargeImageId()
ICreateInfo
getCreateLargeImageId
in interface ICreateInfo
public java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
public java.lang.String getDescription()
IDescription
getDescription
in interface IDescription
getDescription
in class AbstractFeature