Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbenchWindowPulldownDelegate2


    widget = menuItem;

    // Create the submenu.
    if (loadDelegate()
        && (delegate instanceof IWorkbenchWindowPulldownDelegate2)) {
      final IWorkbenchWindowPulldownDelegate2 delegate2 = (IWorkbenchWindowPulldownDelegate2) delegate;
      final MenuLoader loader = new MenuLoader(delegate2, parent);
      SafeRunner.run(loader);
      final Menu subMenu = loader.getMenu();
      if (subMenu != null) {
        menuItem.setMenu(subMenu);
View Full Code Here


     */
    public Menu getMenu(Menu parent) {
      IWorkbenchWindowPulldownDelegate delegate = getPulldownDelegate();

      if (delegate instanceof IWorkbenchWindowPulldownDelegate2) {
        IWorkbenchWindowPulldownDelegate2 delegate2 = (IWorkbenchWindowPulldownDelegate2) delegate;
        final MenuLoader menuLoader = new MenuLoader(delegate2, parent);
        SafeRunner.run(menuLoader);
        return menuLoader.getMenu();
      }

View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkbenchWindowPulldownDelegate2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.