1 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 25 public class NullMenuManager extends NullContributionManager implements IMenuManager { 26 27 public void addMenuListener(IMenuListener listener) {} 28 public IMenuManager findMenuUsingPath(String path) {return null;} 29 public IContributionItem findUsingPath(String 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 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 id) {} 50 } 51 | Popular Tags |