HostAccessActionBarAdvisor
An Eclipse ActionBarAdvisor class is responsible for configuring the action bars (toolbar, coolbar, menu bar, status line) for a workbench window. An implementation of this class is provided for you in the ZIETrans RCP runtime extension plug-in. This class, HostAccessActionBarAdvisor, creates the actions on the menu bar, including the items under the File menu.
Table 1 lists the methods can be implemented
or extended by the HostAccessActionBarAdvisor class.
Method | Description |
---|---|
makeActions(IWorkbenchWindow window) | Action objects should be created and initialized in this method. |
fillMenuBar(IMenuManager) | Populates the workbench window's menu bar with
menus and submenus. The current implementation of this method creates
and populates File, Window, and Help menus. To
hide an action that is already showing on the menu, avoid adding it
to the MenuManager. For example, to hide the Print action, remove
the following line from fillMenuBar() method:
Note: The fillMenuBar() method is only applicable if
the workbench's IWorkbenchWindowConfigurer indicates that the menu
bar should be shown.
|
fillCoolBar(ICoolBarManager) | Populates the workbench window's cool bar with
items.
Note: The fillCoolBar() method is only
applicable if the workbench's IWorkbenchWindowConfigurer indicates
that the cool bar should be shown.
|