KickJava   Java API By Example, From Geeks To Geeks.

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


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.IContributionItem;
14 import org.eclipse.jface.action.IContributionManager;
15 import org.eclipse.jface.action.IMenuListener;
16 import org.eclipse.jface.action.IMenuManager;
17 import org.eclipse.swt.widgets.Composite;
18 import org.eclipse.swt.widgets.CoolBar;
19 import org.eclipse.swt.widgets.Menu;
20 import org.eclipse.swt.widgets.ToolBar;
21
22 /**
23  * @since 3.1
24  */

25 public class NullMenuManager extends NullContributionManager implements IMenuManager {
26
27     public void addMenuListener(IMenuListener listener) {}
28     public IMenuManager findMenuUsingPath(String JavaDoc path) {return null;}
29     public IContributionItem findUsingPath(String JavaDoc path) {return null;}
30     public boolean getRemoveAllWhenShown() {return false;}
31     public boolean isEnabled() {return false;}
32     public void removeMenuListener(IMenuListener listener) {}
33     public void setRemoveAllWhenShown(boolean removeAll) {}
34     public void updateAll(boolean force) {}
35     public void dispose() {}
36     public void fill(Composite parent) {}
37     public void fill(Menu parent, int index) {}
38     public void fill(ToolBar parent, int index) {}
39     public void fill(CoolBar parent, int index) {}
40     public String JavaDoc getId() {return null;}
41     public boolean isDynamic() {return false;}
42     public boolean isGroupMarker() {return false;}
43     public boolean isSeparator() {return false;}
44     public boolean isVisible() {return false;}
45     public void saveWidgetState() {}
46     public void setParent(IContributionManager parent) {}
47     public void setVisible(boolean visible) {}
48     public void update() {}
49     public void update(String JavaDoc id) {}
50 }
51
Popular Tags