]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/ApplicationActionBarAdvisor.java
70f6217cd39f5f5096df34c66c45eed3c7b8f0af
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rcp / src / org / argeo / slc / client / rcp / ApplicationActionBarAdvisor.java
1 package org.argeo.slc.client.rcp;
2
3 import org.eclipse.jface.action.IMenuManager;
4 import org.eclipse.ui.IWorkbenchWindow;
5 import org.eclipse.ui.application.ActionBarAdvisor;
6 import org.eclipse.ui.application.IActionBarConfigurer;
7
8 /**
9 * An action bar advisor is responsible for creating, adding, and disposing of
10 * the actions added to a workbench window. Each window will be populated with
11 * new actions.
12 */
13 public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
14
15 // Actions - important to allocate these only in makeActions, and then use
16 // them
17 // in the fill methods. This ensures that the actions aren't recreated
18 // when fillActionBars is called with FILL_PROXY.
19
20 public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
21 super(configurer);
22 }
23
24 protected void makeActions(final IWorkbenchWindow window) {
25 // Creates the actions and registers them.
26 // Registering is needed to ensure that key bindings work.
27 // The corresponding commands keybindings are defined in the plugin.xml
28 // file.
29 // Registering also provides automatic disposal of the actions when
30 // the window is closed.
31 }
32
33 protected void fillMenuBar(IMenuManager menuBar) {
34 }
35
36 }