Bug 182714 [Contributions] Improve toolbar configurability
bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
for (int i = 0; i < listeners.length; ++i) {
        	final Object listener = listeners[i];
			if (listener instanceof IMenuListener2) {
				final IMenuListener2 listener2 = (IMenuListener2) listener;
				listener2.menuAboutToHide(manager);
			}
        }
    }
    /**
	 * Returns the menu id. The menu id is used when creating a contribution
	 * item for adding this menu as a sub menu of another.
	 * 
	 * @return the menu id
	 */
    public String getId() {
        return id;
    }
    /**
     * Returns the SWT menu control for this menu manager.
     *
     * @return the menu control
     */
    public Menu getMenu() {
        return menu;
    }
    /**
     * Returns the text shown in the menu, potentially with a shortcut
     * appended.
     *
     * @return the menu text