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()
IContextEntry
canExecute
in interface IContextEntry
public void execute()
IContextEntry
execute
in interface IContextEntry
public IContext getContext()
IContextEntry
getContext
in interface IContextEntry
public IFeature getFeature()
IContextEntry
getFeature
in interface IContextEntry
public java.lang.String getIconId()
IContextEntry
getIconId
in interface IContextEntry
public java.lang.String getText()
IContextEntry
getText
in interface IContextEntry
public java.lang.String getDescription()
IContextEntry
getDescription
in interface IContextEntry
public void setIconId(java.lang.String iconId)
IContextEntry
setIconId
in interface IContextEntry
iconId
- the new icon idpublic void setText(java.lang.String text)
IContextEntry
setText
in interface IContextEntry
text
- the new textpublic void setDescription(java.lang.String text)
IContextEntry
setDescription
in interface IContextEntry
text
- the new description