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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canExecute()
Can execute.void
execute()
Execute.IContext
getContext()
Gets the context.java.lang.String
getDescription()
Gets the description.IFeature
getFeature()
Gets the feature.java.lang.String
getIconId()
Gets the icon id.java.lang.String
getText()
Gets the text.void
setDescription(java.lang.String text)
Sets the description.void
setIconId(java.lang.String iconId)
Sets the icon id.void
setText(java.lang.String text)
Sets the text.
-
-
-
Method Detail
-
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
java.lang.String getIconId()
Gets the icon id.- Returns:
- the icon id
-
setDescription
void setDescription(java.lang.String text)
Sets the description.- Parameters:
text
- the new description
-
getDescription
java.lang.String getDescription()
Gets the description.- Returns:
- the description
-
setText
void setText(java.lang.String text)
Sets the text.- Parameters:
text
- the new text
-
getText
java.lang.String getText()
Gets the text.- Returns:
- the text
-
setIconId
void setIconId(java.lang.String iconId)
Sets the icon id.- Parameters:
iconId
- the new icon id
-
-