/** * Convenience method to create a standard menu addition The resulting * string has the format: "menu:[id]?after=additions" * * @param id * The id of the root element to contribute to * @return The formatted string */ public static String menuAddition(String id) { return menuAddition(id, "after", "additions"); //$NON-NLS-1$//$NON-NLS-2$ }
/** * @param id * The id of the menu * @param location * The relative location specifier * @param refId * The id of the menu element to be relative to * @return A location URI formatted with the given parameters */ public static String menuAddition(String id, String location, String refId) { return menuUri(id) + '?' + location + '=' + refId; }
/** * Convenience method to create a standard toolbar addition The resulting * string has the format: "toolbar:[id]?after=additions" * * @param id * The id of the root element to contribute to * @return The formatted string */ public static String toolbarAddition(String id) { return toolbarAddition(id, "after", "additions"); //$NON-NLS-1$//$NON-NLS-2$ } }
/** * @param id * The id of the toolbar * @param location * The relative location specifier * @param refId * The id of the toolbar element to be relative to * @return A location URI formatted with the given parameters */ public static String toolbarAddition(String id, String location, String refId) { return toolbarUri(id) + '?' + location + '=' + refId; }