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 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.
-
-
-
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:IContextEntryCan execute.- Specified by:
canExecutein interfaceIContextEntry- Returns:
- true, if successful
-
execute
public void execute()
Description copied from interface:IContextEntryExecute.- Specified by:
executein interfaceIContextEntry
-
getContext
public IContext getContext()
Description copied from interface:IContextEntryGets the context.- Specified by:
getContextin interfaceIContextEntry- Returns:
- the context
-
getFeature
public IFeature getFeature()
Description copied from interface:IContextEntryGets the feature.- Specified by:
getFeaturein interfaceIContextEntry- Returns:
- the feature
-
getIconId
public java.lang.String getIconId()
Description copied from interface:IContextEntryGets the icon id.- Specified by:
getIconIdin interfaceIContextEntry- Returns:
- the icon id
-
getText
public java.lang.String getText()
Description copied from interface:IContextEntryGets the text.- Specified by:
getTextin interfaceIContextEntry- Returns:
- the text
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IContextEntryGets the description.- Specified by:
getDescriptionin interfaceIContextEntry- Returns:
- the description
-
setIconId
public void setIconId(java.lang.String iconId)
Description copied from interface:IContextEntrySets the icon id.- Specified by:
setIconIdin interfaceIContextEntry- Parameters:
iconId- the new icon id
-
setText
public void setText(java.lang.String text)
Description copied from interface:IContextEntrySets the text.- Specified by:
setTextin interfaceIContextEntry- Parameters:
text- the new text
-
setDescription
public void setDescription(java.lang.String text)
Description copied from interface:IContextEntrySets the description.- Specified by:
setDescriptionin interfaceIContextEntry- Parameters:
text- the new description
-
-