Examples of createContextMenu()


Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

      public void menuAboutToShow(IMenuManager manager) {
        fillServicesContextMenu(manager);
      }
    });

    Menu menu = menuManager.createContextMenu(servicesViewer.getControl());
    servicesViewer.getControl().setMenu(menu);
    editorPage.getSite().registerContextMenu(menuManager, servicesViewer);

    // Create drag source on the table
    int ops = DND.DROP_COPY;
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

      public void menuAboutToShow(IMenuManager manager) {
        fillInstancesContextMenu(manager);
      }
    });

    Menu menu = menuManager.createContextMenu(instancesViewer.getControl());
    instancesViewer.getControl().setMenu(menu);

    if (Platform.getBundle("org.eclipse.rse.ui") != null) { //$NON-NLS-1$
      final ConfigureRemoteCloudFoundryAction configAction = new ConfigureRemoteCloudFoundryAction(cloudServer);
      Link configLink = new Link(client, SWT.NONE);
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

      public void menuAboutToShow(IMenuManager manager) {
        fillServicesContextMenu(manager);
      }
    });

    Menu menu = menuManager.createContextMenu(servicesViewer.getControl());
    servicesViewer.getControl().setMenu(menu);
    // editorPage.getSite().registerContextMenu(ID_MENU_SERVICES,
    // menuManager, servicesViewer);

    servicesSection.setVisible(CloudFoundryBrandingExtensionPoint.getProvideServices(editorPage.getServer()
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

    menuMgr.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        JcrPropertiesView.this.fillContextMenu(manager);
      }
    });
    Menu menu = menuMgr.createContextMenu(viewer.getControl());
    viewer.getControl().setMenu(menu);
    IWorkbenchPartSite site = getSite();
    if (site!=null) {
        site.registerContextMenu(menuMgr, viewer);
    }
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

        manager.add(new Separator());
        obj.fillContextMenu(manager);

      }
    });
    Menu menu = menuMgr.createContextMenu(viewer.getControl());
    viewer.getControl().setMenu(menu);
    getSite().registerContextMenu(menuMgr, viewer);
  }

  private void contributeToActionBars() {
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

      public void menuAboutToShow(IMenuManager manager) {
        fillContextMenu(manager);
      }
    });

    Menu menuRegExp = menuMgr.createContextMenu(regExpText);
    regExpText.setMenu(menuRegExp);

    Menu menuMatch = menuMgr.createContextMenu(matchText);
    matchText.setMenu(menuMatch);
    //getSite().registerContextMenu(menuMgr, );
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

    });

    Menu menuRegExp = menuMgr.createContextMenu(regExpText);
    regExpText.setMenu(menuRegExp);

    Menu menuMatch = menuMgr.createContextMenu(matchText);
    matchText.setMenu(menuMatch);
    //getSite().registerContextMenu(menuMgr, );
  }

  private void fillContextMenu(IMenuManager manager) {
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

        });
    }

    private void hookContextMenu() {
        final MenuManager menuMgr = new MenuManager("#PopupMenu");
        final Menu menu = menuMgr.createContextMenu(viewer.getControl());
        viewer.getControl().setMenu(menu);
        getSite().registerContextMenu(menuMgr, viewer);
        menuMgr.setRemoveAllWhenShown(true);
        menuMgr.addMenuListener(new IMenuListener() {
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

            @Override
            public void menuAboutToShow(final IMenuManager manager) {
                CoverStatsView.this.fillContextMenu(manager);
            }
        });
        final Menu menu = menuMgr.createContextMenu(viewer.getControl());
        viewer.getControl().setMenu(menu);
        getSite().registerContextMenu(menuMgr, viewer);
    }

    private void contributeToActionBars() {
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

     */
    protected void createContextMenu() {
        final MenuManager menuManager = new MenuManager("#PopupMenu"); //$NON-NLS-1$
        menuManager.setRemoveAllWhenShown(true);
        menuManager.addMenuListener(this);
        final Menu contextMenu = menuManager.createContextMenu(getControl());
        getControl().setMenu(contextMenu);
    }

    /*
     * @see IMenuListener#menuAboutToShow(org.eclipse.jface.action.IMenuManager)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.