Package org.eclipse.graphiti.tb
Interface IContextEntry
- All Known Subinterfaces:
IContextButtonEntry
,IContextMenuEntry
- All Known Implementing Classes:
AbstractContextEntry
,ContextButtonEntry
,ContextMenuEntry
,DynamicContextMenuEntry
public interface IContextEntry
The Interface IContextEntry.
-
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.
-
Method Details
-
canExecute
boolean canExecute()Can execute.- Returns:
- true, if successful
-
execute
void execute()Execute. -
getContext
IContext getContext()Gets the context.- Returns:
- the context
-
getFeature
IFeature getFeature()Gets the feature.- Returns:
- the feature
-
getIconId
String getIconId()Gets the icon id.- Returns:
- the icon id
-
setDescription
Sets the description.- Parameters:
text
- the new description
-
getDescription
String getDescription()Gets the description.- Returns:
- the description
-
setText
Sets the text.- Parameters:
text
- the new text
-
getText
String getText()Gets the text.- Returns:
- the text
-
setIconId
Sets the icon id.- Parameters:
iconId
- the new icon id
-