|
||||||||||
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.impl.AbstractUpdateFeature
public abstract class AbstractUpdateFeature
The Class AbstractUpdateFeature.
Field Summary | |
---|---|
private static String |
DESC
|
private static String |
NAME
|
Constructor Summary | |
---|---|
AbstractUpdateFeature(IFeatureProvider fp)
Create a new AbstractUpdateFeature . |
Method Summary | |
---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context. |
protected boolean |
canUpdatePictogramElement(PictogramElement pe)
Can update pictogram element. |
void |
execute(IContext context)
Executes the current feature with the given context. |
String |
getDescription()
Gets the description. |
String |
getName()
Gets the name. |
protected void |
resizeShape(Shape shape)
Resize shape. |
protected void |
updatePictogramElement(PictogramElement pe)
Updates the given pictogram element. |
protected IReason |
updatePictogramElementNeeded(PictogramElement pe)
Update pictogram element needed. |
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
---|
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDiagram, getDiagramBehavior, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, manageDefaultFont, manageDefaultFont, manageFont, manageFont, setProgressCallback, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.func.IUpdate |
---|
canUpdate, update, updateNeeded |
Methods inherited from interface org.eclipse.graphiti.features.IFeature |
---|
canUndo, hasDoneChanges, isAvailable |
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Field Detail |
---|
private static final String NAME
private static final String DESC
Constructor Detail |
---|
public AbstractUpdateFeature(IFeatureProvider fp)
AbstractUpdateFeature
.
fp
- the feature providerMethod Detail |
---|
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
protected boolean canUpdatePictogramElement(PictogramElement pe)
pe
- the pe
protected IReason updatePictogramElementNeeded(PictogramElement pe)
pe
- the pe
protected void updatePictogramElement(PictogramElement pe)
AbstractFeature
updatePictogramElement
in class AbstractFeature
pe
- the peprotected void resizeShape(Shape shape)
shape
- the shapepublic String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
public String getDescription()
IDescription
getDescription
in interface IDescription
getDescription
in class AbstractFeature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |