|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.custom.AbstractCustomFeature
public abstract class AbstractCustomFeature
The Class AbstractCustomFeature.
Constructor Summary | |
---|---|
AbstractCustomFeature(IFeatureProvider fp)
Creates a new AbstractCustomFeature . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
---|
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDiagram, getDiagramEditor, getFeatureProvider, getName, getProgressCallback, getUserDecision, hasDoneChanges, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString, updatePictogramElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.features.custom.ICustomFeature |
---|
execute |
Methods inherited from interface org.eclipse.graphiti.features.IFeature |
---|
canUndo, hasDoneChanges |
Methods inherited from interface org.eclipse.graphiti.IName |
---|
getName |
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Constructor Detail |
---|
public AbstractCustomFeature(IFeatureProvider fp)
AbstractCustomFeature
.
fp
- the feature providerMethod Detail |
---|
public 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 context
public boolean isAvailable(IContext context)
IFeature
isAvailable
in interface IFeature
isAvailable
in class AbstractFeature
context
- this is the general input for this method
IContext
public final boolean canExecute(IContext context)
IFeature
canExecute
in interface IFeature
context
- this is the general input for this method
IContext
public void execute(IContext context)
IFeature
execute
in interface IFeature
context
- this is the general input for this methodIContext
public java.lang.String getImageId()
ICustomFeature
getImageId
in interface ICustomFeature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |