1 11 12 package org.eclipse.ui.menus; 13 14 21 public class MenuUtil { 22 23 public final static String MAIN_MENU = "menu:org.eclipse.ui.main.menu"; 25 public final static String MAIN_TOOLBAR = "toolbar:org.eclipse.ui.main.toolbar"; 27 28 public final static String ANY_POPUP = "popup:org.eclipse.ui.popup.any"; 30 31 public final static String TRIM_COMMAND1 = "toolbar:org.eclipse.ui.trim.command1"; 33 public final static String TRIM_COMMAND2 = "toolbar:org.eclipse.ui.trim.command2"; 35 public final static String TRIM_VERTICAL1 = "toolbar:org.eclipse.ui.trim.vertical1"; 37 public final static String TRIM_VERTICAL2 = "toolbar:org.eclipse.ui.trim.vertical2"; 39 public final static String TRIM_STATUS = "toolbar:org.eclipse.ui.trim.status"; 41 46 public static String menuUri(String id) { 47 return "menu:" + id; } 49 50 57 public static String menuAddition(String id, String location, String refId) { 58 return menuUri(id) + '?' + location + '=' + refId; 59 } 60 61 68 public static String menuAddition(String id) { 69 return menuAddition(id, "after", "additions"); } 71 72 77 public static String toolbarUri(String id) { 78 return "toolbar:" + id; } 80 81 88 public static String toolbarAddition(String id, String location, String refId) { 89 return toolbarUri(id) + '?' + location + '=' + refId; 90 } 91 92 99 public static String toolbarAddition(String id) { 100 return toolbarAddition(id, "after", "additions"); } 102 } 103 | Popular Tags |