Package org.eclipse.graphiti.tb
Class ContextEntryHelper
java.lang.Object
org.eclipse.graphiti.tb.ContextEntryHelper
The Class ContextEntryHelper comprises methods for creating and modifying
context button entries.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IContextButtonEntry
createCollapseContextButton
(boolean collapse, IFeature customFeature, IContext customContext) Creates collapse button entry or expand button entry as indicated by parameter collapse.static IContextButtonEntry
createDefaultDeleteContextButton
(IFeatureProvider featureProvider, PictogramElement pe) Creates an default delete context button entry.static IContextButtonEntry
createDefaultRemoveContextButton
(IFeatureProvider featureProvider, PictogramElement pe) Creates an default remove context button entry.static IContextButtonEntry
createDefaultUpdateContextButton
(IFeatureProvider featureProvider, PictogramElement pe) Creates an default update context button entry.static void
markAsCollapseContextEntry
(IContextEntry entry, boolean collapse) Marks the given context entry with collapse or expand figure.static void
Marks the given context entry with delete from model.static void
Marks the given context entry with remove figure from diagram.static void
Marks the given context entry with update figure.
-
Field Details
-
NAME
-
-
Constructor Details
-
ContextEntryHelper
public ContextEntryHelper()
-
-
Method Details
-
createDefaultUpdateContextButton
public static IContextButtonEntry createDefaultUpdateContextButton(IFeatureProvider featureProvider, PictogramElement pe) Creates an default update context button entry.- Parameters:
featureProvider
- the feature providerpe
- the pictogram element- Returns:
- the created default update context button entry
-
createDefaultRemoveContextButton
public static IContextButtonEntry createDefaultRemoveContextButton(IFeatureProvider featureProvider, PictogramElement pe) Creates an default remove context button entry.- Parameters:
featureProvider
- the feature providerpe
- the pictogram element- Returns:
- the created default remove context button entry
-
createDefaultDeleteContextButton
public static IContextButtonEntry createDefaultDeleteContextButton(IFeatureProvider featureProvider, PictogramElement pe) Creates an default delete context button entry.- Parameters:
featureProvider
- the feature providerpe
- the pictogram element- Returns:
- the created default delete context button entry
-
createCollapseContextButton
public static IContextButtonEntry createCollapseContextButton(boolean collapse, IFeature customFeature, IContext customContext) Creates collapse button entry or expand button entry as indicated by parameter collapse.- Parameters:
collapse
- creates a collapse button entry when true, otherwise a expand button entrycustomFeature
- the custom featurecustomContext
- the custom context- Returns:
- the created collapse button
-
markAsUpdateContextEntry
Marks the given context entry with update figure.- Parameters:
entry
- the context entry
-
markAsRemoveContextEntry
Marks the given context entry with remove figure from diagram.- Parameters:
entry
- the context entry
-
markAsDeleteContextEntry
Marks the given context entry with delete from model.- Parameters:
entry
- the context entry
-
markAsCollapseContextEntry
Marks the given context entry with collapse or expand figure.- Parameters:
entry
- the context entrycollapse
- mark with collapse when true, otherwise with expand
-