|
||||||||||
| 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. |
String |
getDescription()
Gets the description. |
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, getDiagramBehavior, getFeatureProvider, getName, getProgressCallback, getUserDecision, hasDoneChanges, layoutPictogramElement, link, link, manageColor, manageColor, manageDefaultFont, manageFont, manageFont, 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 provider| Method Detail |
|---|
public String getDescription()
IDescription
getDescription in interface IDescriptiongetDescription in class AbstractFeaturepublic boolean canExecute(ICustomContext context)
ICustomFeature
canExecute in interface ICustomFeaturecontext - the context
public boolean isAvailable(IContext context)
IFeature
isAvailable in interface IFeatureisAvailable in class AbstractFeaturecontext - this is the general input for this method
IContextpublic final boolean canExecute(IContext context)
IFeature
canExecute in interface IFeaturecontext - this is the general input for this method
IContextpublic void execute(IContext context)
IFeature
execute in interface IFeaturecontext - this is the general input for this methodIContextpublic String getImageId()
ICustomFeature
getImageId in interface ICustomFeature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||