1 11 package org.eclipse.ui.internal.menus; 12 13 import java.util.Collection ; 14 15 import org.eclipse.core.expressions.Expression; 16 import org.eclipse.ui.services.IServiceWithSources; 17 18 41 public interface IMenuService extends IServiceWithSources { 42 43 65 public IMenuContribution contributeMenu(MenuElement menuElement); 66 67 94 public IMenuContribution contributeMenu(MenuElement menuElement, 95 Expression expression); 96 97 108 public SActionSet getActionSet(String actionSetId); 109 110 116 public SActionSet[] getDefinedActionSets(); 117 118 124 public SGroup[] getDefinedGroups(); 125 126 132 public SItem[] getDefinedItems(); 133 134 140 public SMenu[] getDefinedMenus(); 141 142 148 public SWidget[] getDefinedWidgets(); 149 150 159 public SGroup getGroup(String groupId); 160 161 170 public SItem getItem(String itemId); 171 172 190 public SMenuLayout getLayout(); 191 192 201 public SMenu getMenu(String menuId); 202 203 213 public SWidget getWidget(String widgetId); 214 215 228 public void readRegistry(); 229 230 241 public void removeContribution(IMenuContribution contribution); 242 243 256 public void removeContributions(Collection contributions); 257 } 258 | Popular Tags |