KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > services > NullPartActionBars


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.part.services;
12
13 import org.eclipse.jface.action.IAction;
14 import org.eclipse.jface.action.ICoolBarManager;
15 import org.eclipse.jface.action.IMenuManager;
16 import org.eclipse.jface.action.IToolBarManager;
17 import org.eclipse.ui.internal.part.components.services.IPartActionBars;
18
19 public class NullPartActionBars implements IPartActionBars {
20
21     private IMenuManager menuManager = new NullMenuManager();
22     private IToolBarManager toolbarManager = new NullToolBarManager();
23     private ICoolBarManager nullCbm = new NullCoolBarManager();
24     
25     public ICoolBarManager getCoolBarManager() {
26         return nullCbm;
27     }
28     
29     public void clearGlobalActionHandlers() {
30
31     }
32
33     public IAction getGlobalActionHandler(String JavaDoc actionId) {
34         return null;
35     }
36
37     public IMenuManager getPartMenuManager() {
38         return menuManager;
39     }
40
41     public IMenuManager getMenuBarManager() {
42         return menuManager;
43     }
44
45     public IToolBarManager getToolBarManager() {
46         return toolbarManager;
47     }
48
49     public void setGlobalActionHandler(String JavaDoc actionId, IAction handler) {
50     }
51
52     public void updateActionBars() {
53     }
54
55 }
56
Popular Tags