Package org.eclipse.graphiti.tb
Interface IContextEntry
-
- All Known Subinterfaces:
IContextButtonEntry,IContextMenuEntry
- All Known Implementing Classes:
AbstractContextEntry,ContextButtonEntry,ContextMenuEntry,DynamicContextMenuEntry
public interface IContextEntryThe Interface IContextEntry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanExecute()Can execute.voidexecute()Execute.IContextgetContext()Gets the context.java.lang.StringgetDescription()Gets the description.IFeaturegetFeature()Gets the feature.java.lang.StringgetIconId()Gets the icon id.java.lang.StringgetText()Gets the text.voidsetDescription(java.lang.String text)Sets the description.voidsetIconId(java.lang.String iconId)Sets the icon id.voidsetText(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
-
-