Package org.eclipse.graphiti.tb
Class AbstractContextEntry
java.lang.Object
org.eclipse.graphiti.tb.AbstractContextEntry
- All Implemented Interfaces:
IContextEntry
- Direct Known Subclasses:
ContextButtonEntry
,ContextMenuEntry
,DynamicContextMenuEntry
The Class AbstractContextEntry.
-
Constructor Summary
ConstructorDescriptionAbstractContextEntry
(IFeature feature, IContext context) Creates a newAbstractContextEntry
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Can execute.void
execute()
Execute.Gets the context.Gets the description.Gets the feature.Gets the icon id.getText()
Gets the text.void
setDescription
(String text) Sets the description.void
Sets the icon id.void
Sets the text.
-
Constructor Details
-
AbstractContextEntry
Creates a newAbstractContextEntry
.- Parameters:
feature
- the featurecontext
- the context
-
-
Method Details
-
canExecute
public boolean canExecute()Description copied from interface:IContextEntry
Can execute.- Specified by:
canExecute
in interfaceIContextEntry
- Returns:
- true, if successful
-
execute
public void execute()Description copied from interface:IContextEntry
Execute.- Specified by:
execute
in interfaceIContextEntry
-
getContext
Description copied from interface:IContextEntry
Gets the context.- Specified by:
getContext
in interfaceIContextEntry
- Returns:
- the context
-
getFeature
Description copied from interface:IContextEntry
Gets the feature.- Specified by:
getFeature
in interfaceIContextEntry
- Returns:
- the feature
-
getIconId
Description copied from interface:IContextEntry
Gets the icon id.- Specified by:
getIconId
in interfaceIContextEntry
- Returns:
- the icon id
-
getText
Description copied from interface:IContextEntry
Gets the text.- Specified by:
getText
in interfaceIContextEntry
- Returns:
- the text
-
getDescription
Description copied from interface:IContextEntry
Gets the description.- Specified by:
getDescription
in interfaceIContextEntry
- Returns:
- the description
-
setIconId
Description copied from interface:IContextEntry
Sets the icon id.- Specified by:
setIconId
in interfaceIContextEntry
- Parameters:
iconId
- the new icon id
-
setText
Description copied from interface:IContextEntry
Sets the text.- Specified by:
setText
in interfaceIContextEntry
- Parameters:
text
- the new text
-
setDescription
Description copied from interface:IContextEntry
Sets the description.- Specified by:
setDescription
in interfaceIContextEntry
- Parameters:
text
- the new description
-