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
The Class AbstractContextEntry.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractContextEntry(IFeature feature, IContext context) Creates a newAbstractContextEntry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan execute.voidexecute()Execute.Gets the context.Gets the description.Gets the feature.Gets the icon id.getText()Gets the text.voidsetDescription(String text) Sets the description.voidSets the icon id.voidSets the text.
-
Constructor Details
-
AbstractContextEntry
Creates a newAbstractContextEntry.- Parameters:
feature- the featurecontext- the context
-
-
Method Details
-
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
Description copied from interface:IContextEntryGets the context.- Specified by:
getContextin interfaceIContextEntry- Returns:
- the context
-
getFeature
Description copied from interface:IContextEntryGets the feature.- Specified by:
getFeaturein interfaceIContextEntry- Returns:
- the feature
-
getIconId
Description copied from interface:IContextEntryGets the icon id.- Specified by:
getIconIdin interfaceIContextEntry- Returns:
- the icon id
-
getText
Description copied from interface:IContextEntryGets the text.- Specified by:
getTextin interfaceIContextEntry- Returns:
- the text
-
getDescription
Description copied from interface:IContextEntryGets the description.- Specified by:
getDescriptionin interfaceIContextEntry- Returns:
- the description
-
setIconId
Description copied from interface:IContextEntrySets the icon id.- Specified by:
setIconIdin interfaceIContextEntry- Parameters:
iconId- the new icon id
-
setText
Description copied from interface:IContextEntrySets the text.- Specified by:
setTextin interfaceIContextEntry- Parameters:
text- the new text
-
setDescription
Description copied from interface:IContextEntrySets the description.- Specified by:
setDescriptionin interfaceIContextEntry- Parameters:
text- the new description
-