|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.util.ViewMenus
public class ViewMenus
This class simplifies the handling of menus and toolbars.
Nested Class Summary | |
---|---|
static interface |
ViewMenus.IMenuPopulator
|
Constructor Summary | |
---|---|
ViewMenus(org.eclipse.ui.IViewSite s)
|
Method Summary | |
---|---|
void |
createControlContextMenu(org.eclipse.swt.widgets.Control control,
org.eclipse.jface.action.IAction... actions)
Creates a menu for the given control containing the given actions |
void |
createControlContextMenu(org.eclipse.swt.widgets.Control control,
ViewMenus.IMenuPopulator populator)
Creates a menu for the given Control that will be populated by the provided populator This can be used to construct dynamic menus that change contents depending of state. |
void |
createMenu(org.eclipse.jface.action.IAction... actions)
Create a menu containing the specified actions. |
void |
createToolbar(org.eclipse.jface.action.IAction... actions)
Create a toolbar containing the specified actions |
void |
createViewerContextMenu(org.eclipse.jface.viewers.StructuredViewer viewer,
org.eclipse.jface.action.IAction... actions)
Attach a context menu to a org.eclipse.jface.StructuredViewer |
protected void |
fillContextMenu(org.eclipse.jface.action.IMenuManager manager,
org.eclipse.jface.action.IAction... actions)
|
org.eclipse.jface.action.MenuManager |
getContextMenu()
Return the context menu for registration with the selectionProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewMenus(org.eclipse.ui.IViewSite s)
Method Detail |
---|
public void createMenu(org.eclipse.jface.action.IAction... actions)
actions
- a collection of actions and null-values (that represent separators)public void createToolbar(org.eclipse.jface.action.IAction... actions)
actions
- a collection of actions and null-values (that represent separators)public void createViewerContextMenu(org.eclipse.jface.viewers.StructuredViewer viewer, org.eclipse.jface.action.IAction... actions)
viewer
- the vieweractions
- the actions to usepublic void createControlContextMenu(org.eclipse.swt.widgets.Control control, org.eclipse.jface.action.IAction... actions)
control
- the Control to add the menu toactions
- the actions to be shown in the menupublic org.eclipse.jface.action.MenuManager getContextMenu()
public void createControlContextMenu(org.eclipse.swt.widgets.Control control, ViewMenus.IMenuPopulator populator)
protected void fillContextMenu(org.eclipse.jface.action.IMenuManager manager, org.eclipse.jface.action.IAction... actions)
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |