Package org.eclipse.graphiti.tb
Class ContextMenuEntry
- java.lang.Object
-
- org.eclipse.graphiti.tb.AbstractContextEntry
-
- org.eclipse.graphiti.tb.ContextMenuEntry
-
- All Implemented Interfaces:
IContextEntry,IContextMenuEntry
public class ContextMenuEntry extends AbstractContextEntry implements IContextMenuEntry
The Class ContextMenuEntry.
-
-
Constructor Summary
Constructors Constructor Description ContextMenuEntry(IFeature feature, IContext context)Creates a newContextMenuEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IContextMenuEntry entry)Adds the.IContextMenuEntry[]getChildren()Gets the children.booleanisSubmenu()Checks if is submenu.voidsetSubmenu(boolean submenu)Sets the submenu.-
Methods inherited from class org.eclipse.graphiti.tb.AbstractContextEntry
canExecute, execute, getContext, getDescription, getFeature, getIconId, getText, setDescription, setIconId, setText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.graphiti.tb.IContextEntry
canExecute, execute, getContext, getDescription, getFeature, getIconId, getText, setDescription, setIconId, setText
-
-
-
-
Constructor Detail
-
ContextMenuEntry
public ContextMenuEntry(IFeature feature, IContext context)
Creates a newContextMenuEntry.- Parameters:
feature- the featurecontext- the context
-
-
Method Detail
-
getChildren
public IContextMenuEntry[] getChildren()
Description copied from interface:IContextMenuEntryGets the children.- Specified by:
getChildrenin interfaceIContextMenuEntry- Returns:
- the children
-
add
public void add(IContextMenuEntry entry)
Description copied from interface:IContextMenuEntryAdds the.- Specified by:
addin interfaceIContextMenuEntry- Parameters:
entry- the entry
-
isSubmenu
public boolean isSubmenu()
Description copied from interface:IContextMenuEntryChecks if is submenu.- Specified by:
isSubmenuin interfaceIContextMenuEntry- Returns:
- true, if is submenu
-
setSubmenu
public void setSubmenu(boolean submenu)
Sets the submenu.- Parameters:
submenu- the new submenu
-
-