public class AbstractContextEntry extends java.lang.Object implements IContextEntry
| Constructor and Description |
|---|
AbstractContextEntry(IFeature feature,
IContext context)
Creates a new
AbstractContextEntry. |
| Modifier and Type | Method and 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.
|
public AbstractContextEntry(IFeature feature, IContext context)
AbstractContextEntry.feature - the featurecontext - the contextpublic boolean canExecute()
IContextEntrycanExecute in interface IContextEntrypublic void execute()
IContextEntryexecute in interface IContextEntrypublic IContext getContext()
IContextEntrygetContext in interface IContextEntrypublic IFeature getFeature()
IContextEntrygetFeature in interface IContextEntrypublic java.lang.String getIconId()
IContextEntrygetIconId in interface IContextEntrypublic java.lang.String getText()
IContextEntrygetText in interface IContextEntrypublic java.lang.String getDescription()
IContextEntrygetDescription in interface IContextEntrypublic void setIconId(java.lang.String iconId)
IContextEntrysetIconId in interface IContextEntryiconId - the new icon idpublic void setText(java.lang.String text)
IContextEntrysetText in interface IContextEntrytext - the new textpublic void setDescription(java.lang.String text)
IContextEntrysetDescription in interface IContextEntrytext - the new description