KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-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.ICoolBarManager;
14 import org.eclipse.jface.action.IMenuManager;
15 import org.eclipse.jface.action.IToolBarManager;
16
17 /**
18  * @since 3.1
19  */

20 public class NullCoolBarManager extends NullContributionManager implements ICoolBarManager {
21
22     /* (non-Javadoc)
23      * @see org.eclipse.jface.action.ICoolBarManager#add(org.eclipse.jface.action.IToolBarManager)
24      */

25     public void add(IToolBarManager toolBarManager) {
26         
27     }
28
29     /* (non-Javadoc)
30      * @see org.eclipse.jface.action.ICoolBarManager#getContextMenuManager()
31      */

32     public IMenuManager getContextMenuManager() {
33         return null;
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.jface.action.ICoolBarManager#getLockLayout()
38      */

39     public boolean getLockLayout() {
40         return false;
41     }
42
43     /* (non-Javadoc)
44      * @see org.eclipse.jface.action.ICoolBarManager#getStyle()
45      */

46     public int getStyle() {
47         return 0;
48     }
49
50     /* (non-Javadoc)
51      * @see org.eclipse.jface.action.ICoolBarManager#setContextMenuManager(org.eclipse.jface.action.IMenuManager)
52      */

53     public void setContextMenuManager(IMenuManager menuManager) {
54         
55     }
56
57     /* (non-Javadoc)
58      * @see org.eclipse.jface.action.ICoolBarManager#setLockLayout(boolean)
59      */

60     public void setLockLayout(boolean value) {
61         
62     }
63
64 }
65
Popular Tags