Package org.eclipse.graphiti.tb
Class AbstractContextEntry
- java.lang.Object
-
- org.eclipse.graphiti.tb.AbstractContextEntry
-
- All Implemented Interfaces:
IContextEntry
- Direct Known Subclasses:
ContextButtonEntry
,ContextMenuEntry
,DynamicContextMenuEntry
public class AbstractContextEntry extends java.lang.Object implements IContextEntry
The Class AbstractContextEntry.
-
-
Constructor Summary
Constructors Constructor Description AbstractContextEntry(IFeature feature, IContext context)
Creates a newAbstractContextEntry
.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
AbstractContextEntry
public AbstractContextEntry(IFeature feature, IContext context)
Creates a newAbstractContextEntry
.- Parameters:
feature
- the featurecontext
- the context
-
-
Method Detail
-
canExecute
public boolean canExecute()
Description copied from interface:IContextEntry
Can execute.- Specified by:
canExecute
in interfaceIContextEntry
- Returns:
- true, if successful
-
execute
public void execute()
Description copied from interface:IContextEntry
Execute.- Specified by:
execute
in interfaceIContextEntry
-
getContext
public IContext getContext()
Description copied from interface:IContextEntry
Gets the context.- Specified by:
getContext
in interfaceIContextEntry
- Returns:
- the context
-
getFeature
public IFeature getFeature()
Description copied from interface:IContextEntry
Gets the feature.- Specified by:
getFeature
in interfaceIContextEntry
- Returns:
- the feature
-
getIconId
public java.lang.String getIconId()
Description copied from interface:IContextEntry
Gets the icon id.- Specified by:
getIconId
in interfaceIContextEntry
- Returns:
- the icon id
-
getText
public java.lang.String getText()
Description copied from interface:IContextEntry
Gets the text.- Specified by:
getText
in interfaceIContextEntry
- Returns:
- the text
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IContextEntry
Gets the description.- Specified by:
getDescription
in interfaceIContextEntry
- Returns:
- the description
-
setIconId
public void setIconId(java.lang.String iconId)
Description copied from interface:IContextEntry
Sets the icon id.- Specified by:
setIconId
in interfaceIContextEntry
- Parameters:
iconId
- the new icon id
-
setText
public void setText(java.lang.String text)
Description copied from interface:IContextEntry
Sets the text.- Specified by:
setText
in interfaceIContextEntry
- Parameters:
text
- the new text
-
setDescription
public void setDescription(java.lang.String text)
Description copied from interface:IContextEntry
Sets the description.- Specified by:
setDescription
in interfaceIContextEntry
- Parameters:
text
- the new description
-
-