|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.graphiti.features.impl.AbstractFeatureProvider
org.eclipse.graphiti.ui.features.DefaultFeatureProvider
org.eclipse.graphiti.pattern.DefaultFeatureProviderWithPatterns
public class DefaultFeatureProviderWithPatterns
The Class DefaultFeatureProviderWithPatterns.
| Field Summary | |
|---|---|
private java.util.List<IConnectionPattern> |
connectionPatters
|
private java.util.List<IPattern> |
patterns
|
| Fields inherited from class org.eclipse.graphiti.features.impl.AbstractFeatureProvider |
|---|
EMPTY_PICTOGRAM_ELEMENTS, NO_OBJECTS |
| Constructor Summary | |
|---|---|
DefaultFeatureProviderWithPatterns(IDiagramTypeProvider dtp)
Creates a new DefaultFeatureProviderWithPatterns. |
|
| Method Summary | |
|---|---|
void |
activateDirectEditingForPatterns(PictogramElement mainPictogramElement,
java.lang.Object bo)
Activate direct editing for patterns. |
void |
activateDirectEditingForPatterns(PictogramElement mainPictogramElement,
java.lang.Object bo,
java.lang.String keyProperty)
Activate direct editing for patterns. |
void |
addConnectionPattern(IConnectionPattern pattern)
Adds a connection pattern. |
void |
addPattern(IPattern pattern)
Adds the pattern. |
protected boolean |
checkFeatureAndContext(IFeature feature,
IContext context)
Check feature and context. |
protected boolean |
checkPattern(IPattern pattern,
java.lang.Object object)
Check pattern. |
IAddFeature |
getAddFeature(IAddContext context)
Add features create graphical representations of domain model objects. |
protected IAddFeature |
getAddFeatureAdditional(IAddContext context)
Gets the additional add feature. |
java.lang.Object |
getBusinessObjectForPictogramElement(PictogramElement pictogramElement)
Returns the first of possibly several business objects which are linked to the given pictogram element. |
protected java.util.List<IConnectionPattern> |
getConnectionPatterns()
Gets the connection patterns. |
ICreateConnectionFeature[] |
getCreateConnectionFeatures()
Gets the create connection features. |
protected ICreateConnectionFeature[] |
getCreateConnectionFeaturesAdditional()
Gets the additional create connection features. |
ICreateFeature[] |
getCreateFeatures()
Provides all create features. |
protected ICreateFeature[] |
getCreateFeaturesAdditional()
Gets the additional create features. |
IDeleteFeature |
getDeleteFeature(IDeleteContext context)
Delete features remove the grapical representations of domain model objects as well as the domain model objects itself. |
protected IDeleteFeature |
getDeleteFeatureAdditional(IDeleteContext context)
Gets the additional delete feature. |
IDirectEditingFeature |
getDirectEditingFeature(IDirectEditingContext context)
Direct editing features handle direct editing functionality (including drop down lists and text completion). |
protected IDirectEditingFeature |
getDirectEditingFeatureAdditional(IDirectEditingContext context)
Gets the additional direct editing feature. |
ILayoutFeature |
getLayoutFeature(ILayoutContext context)
Layout features do the layouting work (sizes and dimensions) inside (and/or) outside a pictogram element. |
protected ILayoutFeature |
getLayoutFeatureAdditional(ILayoutContext context)
Gets the additional layout feature. |
IMoveShapeFeature |
getMoveShapeFeature(IMoveShapeContext context)
Move shape features respond to user's move requests. |
protected IMoveShapeFeature |
getMoveShapeFeatureAdditional(IMoveShapeContext context)
Gets the additional move shape feature. |
IPattern |
getPatternForPictogramElement(PictogramElement pe)
Gets the pattern for pictogram element. |
protected java.util.List<IPattern> |
getPatterns()
Gets the patterns. |
IRemoveFeature |
getRemoveFeature(IRemoveContext context)
Remove features remove the grapical representations of domain model objects. |
protected IRemoveFeature |
getRemoveFeatureAdditional(IRemoveContext context)
Gets the additional remove feature. |
IResizeShapeFeature |
getResizeShapeFeature(IResizeShapeContext context)
Resize shape features respond to user's resize requests. |
protected IResizeShapeFeature |
getResizeShapeFeatureAdditional(IResizeShapeContext context)
Gets the additional resize shape feature. |
IUpdateFeature |
getUpdateFeature(IUpdateContext context)
Update features do the synchronization work and transport data from domain model to pictograms model elements. |
protected IUpdateFeature |
getUpdateFeatureAdditional(IUpdateContext context)
Gets additional the update feature. |
protected void |
traceWarning(java.lang.String string,
IPattern pattern,
IPattern choosenPattern)
Trace warning. |
| Methods inherited from class org.eclipse.graphiti.ui.features.DefaultFeatureProvider |
|---|
getAddBendpointFeature, getCopyFeature, getCustomFeatures, getMoveAnchorFeature, getMoveBendpointFeature, getMoveConnectionDecoratorFeature, getPasteFeature, getRemoveBendpointFeature |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<IPattern> patterns
private java.util.List<IConnectionPattern> connectionPatters
| Constructor Detail |
|---|
public DefaultFeatureProviderWithPatterns(IDiagramTypeProvider dtp)
DefaultFeatureProviderWithPatterns.
dtp - the diagram type provider| Method Detail |
|---|
public void addPattern(IPattern pattern)
IPatternContainer
addPattern in interface IPatternContainerpattern - the patternpublic void addConnectionPattern(IConnectionPattern pattern)
pattern - the connection patternprotected java.util.List<IPattern> getPatterns()
protected java.util.List<IConnectionPattern> getConnectionPatterns()
protected boolean checkFeatureAndContext(IFeature feature,
IContext context)
feature - the featurecontext - the context
public IAddFeature getAddFeature(IAddContext context)
IFeatureProvider
getAddFeature in interface IFeatureProvidergetAddFeature in class AbstractFeatureProvidercontext - the context
IAddFeatureprotected IAddFeature getAddFeatureAdditional(IAddContext context)
context - the add context
public ICreateFeature[] getCreateFeatures()
IFeatureProvider
getCreateFeatures in interface IFeatureProvidergetCreateFeatures in class AbstractFeatureProviderICreateFeatureprotected ICreateFeature[] getCreateFeaturesAdditional()
public IDeleteFeature getDeleteFeature(IDeleteContext context)
IFeatureProvider
getDeleteFeature in interface IFeatureProvidergetDeleteFeature in class DefaultFeatureProvidercontext - the context
IDeleteFeatureprotected IDeleteFeature getDeleteFeatureAdditional(IDeleteContext context)
context - the delete context
public IRemoveFeature getRemoveFeature(IRemoveContext context)
IFeatureProvider
getRemoveFeature in interface IFeatureProvidergetRemoveFeature in class DefaultFeatureProvidercontext - the context
IRemoveFeatureprotected IRemoveFeature getRemoveFeatureAdditional(IRemoveContext context)
context - the remove context
public ILayoutFeature getLayoutFeature(ILayoutContext context)
IFeatureProvider
getLayoutFeature in interface IFeatureProvidergetLayoutFeature in class AbstractFeatureProvidercontext - the context
ILayoutFeatureprotected ILayoutFeature getLayoutFeatureAdditional(ILayoutContext context)
context - the layout context
public IMoveShapeFeature getMoveShapeFeature(IMoveShapeContext context)
IFeatureProvider
getMoveShapeFeature in interface IFeatureProvidergetMoveShapeFeature in class DefaultFeatureProvidercontext - the context
IMoveShapeFeatureprotected IMoveShapeFeature getMoveShapeFeatureAdditional(IMoveShapeContext context)
context - the move shape context
public IResizeShapeFeature getResizeShapeFeature(IResizeShapeContext context)
IFeatureProvider
getResizeShapeFeature in interface IFeatureProvidergetResizeShapeFeature in class DefaultFeatureProvidercontext - the context
IResizeShapeFeature
protected boolean checkPattern(IPattern pattern,
java.lang.Object object)
pattern - the patternobject - the object
protected IResizeShapeFeature getResizeShapeFeatureAdditional(IResizeShapeContext context)
context - the context
public IUpdateFeature getUpdateFeature(IUpdateContext context)
IFeatureProvider
getUpdateFeature in interface IFeatureProvidergetUpdateFeature in class DefaultFeatureProvidercontext - the context
IUpdateFeatureprotected IUpdateFeature getUpdateFeatureAdditional(IUpdateContext context)
context - the update context
public IPattern getPatternForPictogramElement(PictogramElement pe)
IFeatureProviderWithPatterns
getPatternForPictogramElement in interface IFeatureProviderWithPatternspe - the pictogram element
public void activateDirectEditingForPatterns(PictogramElement mainPictogramElement,
java.lang.Object bo)
IFeatureProviderWithPatterns
activateDirectEditingForPatterns in interface IFeatureProviderWithPatternsmainPictogramElement - the main pictogram elementbo - the business object
public void activateDirectEditingForPatterns(PictogramElement mainPictogramElement,
java.lang.Object bo,
java.lang.String keyProperty)
IFeatureProviderWithPatterns
activateDirectEditingForPatterns in interface IFeatureProviderWithPatternsmainPictogramElement - the main pictogram elementbo - the business objectkeyProperty - the key propertypublic ICreateConnectionFeature[] getCreateConnectionFeatures()
IFeatureProvider
getCreateConnectionFeatures in interface IFeatureProvidergetCreateConnectionFeatures in class AbstractFeatureProviderICreateConnectionFeatureprotected ICreateConnectionFeature[] getCreateConnectionFeaturesAdditional()
public IDirectEditingFeature getDirectEditingFeature(IDirectEditingContext context)
IFeatureProvider
getDirectEditingFeature in interface IFeatureProvidergetDirectEditingFeature in class AbstractFeatureProvidercontext - the context
IDirectEditingFeatureprotected IDirectEditingFeature getDirectEditingFeatureAdditional(IDirectEditingContext context)
context - the direct editing context
protected void traceWarning(java.lang.String string,
IPattern pattern,
IPattern choosenPattern)
string - the stringpattern - the patternchoosenPattern - the choosen patternpublic java.lang.Object getBusinessObjectForPictogramElement(PictogramElement pictogramElement)
IMappingProviderIMappingProvider.getAllBusinessObjectsForPictogramElement(PictogramElement),
because in many usecases only a single business object is linked.
getBusinessObjectForPictogramElement in interface IMappingProvidergetBusinessObjectForPictogramElement in class AbstractFeatureProviderpictogramElement - The pictogram element for which to return the business object.
IMappingProvider.link(PictogramElement, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||