Examples of IMenuService


Examples of org.eclipse.ui.menus.IMenuService

    workbench.largeUpdateStart();
    try {
      getActionBarAdvisor().fillActionBars(flags);
      //
      // 3.3 start
      final IMenuService menuService = (IMenuService) serviceLocator
          .getService(IMenuService.class);
      menuService.populateContributionManager(
          (ContributionManager) getActionBars().getMenuManager(),
          MenuUtil.MAIN_MENU);
      ICoolBarManager coolbar = getActionBars().getCoolBarManager();
      if (coolbar != null) {
        menuService.populateContributionManager(
            (ContributionManager) coolbar,
            MenuUtil.MAIN_TOOLBAR);
      }
      // 3.3 end
    } finally {
View Full Code Here

Examples of org.eclipse.ui.menus.IMenuService

    final ICommandService commandService = new SlaveCommandService(
        parentCommandService, IServiceScopes.WINDOW_SCOPE,
        this);
    serviceLocator.registerService(ICommandService.class, commandService);

    final IMenuService menuService = new WindowMenuService(serviceLocator);
    serviceLocator.registerService(IMenuService.class, menuService);

//    final ISourceProviderService sourceProviderService = (ISourceProviderService) serviceLocator
//        .getService(ISourceProviderService.class);
//    final ISourceProvider[] sourceProviders = sourceProviderService
View Full Code Here

Examples of org.eclipse.ui.menus.IMenuService

   
    tableViewer.setContentProvider(new CsvContentProvider());
    Table table = tableViewer.getTable();
    table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
   
    IMenuService menuService = (IMenuService) PlatformUI.getWorkbench().getService(IMenuService.class);
        menuService.populateContributionManager(toolBarManager, "toolbar:de.ambits.csvmaster.editors.tableComposite");
        toolBarManager.update(true);
       
        //Enables key support for the table viewer
        TableViewerKeyboardSupporter supporter = new TableViewerKeyboardSupporter(tableViewer);
        supporter.startSupport();
View Full Code Here

Examples of org.eclipse.ui.menus.IMenuService

  public void setFocus() {
    commitPage.getPartControl().setFocus();
  }

  private void addContributions(IToolBarManager toolBarManager) {
    IMenuService menuService = CommonUtils.getService(getSite(), IMenuService.class);
    if (menuService != null
        && toolBarManager instanceof ContributionManager) {
      ContributionManager contributionManager = (ContributionManager) toolBarManager;
      String toolbarUri = "toolbar:" + TOOLBAR_HEADER_ID; //$NON-NLS-1$
      menuService.populateContributionManager(contributionManager,
          toolbarUri);
    }
  }
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.