Examples of appendToGroup()


Examples of org.eclipse.jface.action.IToolBarManager.appendToGroup()

                    }
                });
        mgr.add(new GroupMarker(STYLE_MENU_GROUP));
        mgr.appendToGroup(STYLE_MENU_GROUP, new Separator());
        mgr.appendToGroup(STYLE_MENU_GROUP, applyAction);
        mgr.appendToGroup(STYLE_MENU_GROUP, cancelAction);

        mgr.add(new GroupMarker(CONFIG_MENU_GROUP));
        mgr.add(new Separator());
    }
View Full Code Here

Examples of org.eclipse.jface.action.IToolBarManager.appendToGroup()

            // FIXME: help with sub toolbar
            if (toolbarManager != null) {
                IToolBarManager mgr = getViewSite().getActionBars().getToolBarManager();
                mgr.add(new GroupMarker(CONFIG_MENU_GROUP));
                for( IContributionItem item : toolbarManager.getItems() ) {
                    mgr.appendToGroup(CONFIG_MENU_GROUP, item);
                }
            } else {
                IToolBarManager mgr = getViewSite().getActionBars().getToolBarManager();
                mgr.removeAll();
                createToolBar();
View Full Code Here

Examples of org.eclipse.jface.action.IToolBarManager.appendToGroup()

    private CloseConsoleAction closeAction;

    public void init(IPageBookViewPage page, IConsole console) {
        closeAction = new CloseConsoleAction(console);
        IToolBarManager manager = page.getSite().getActionBars().getToolBarManager();
        manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, closeAction);
    }

    public void dispose() {
        closeAction = null;
    }
View Full Code Here

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

    }

    menuMgr.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        manager.add(new Separator("control"));
        menuMgr
            .appendToGroup("control",
                new MediaOpenAction(selection));
        menuMgr.appendToGroup("control", new SyncPlayAction(selection));
        MediaViewPart.this.fillContextMenu(manager);
      }
View Full Code Here

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

      public void menuAboutToShow(IMenuManager manager) {
        manager.add(new Separator("control"));
        menuMgr
            .appendToGroup("control",
                new MediaOpenAction(selection));
        menuMgr.appendToGroup("control", new SyncPlayAction(selection));
        MediaViewPart.this.fillContextMenu(manager);
      }
    });

    if (lControl != null && lProvider != null) {
View Full Code Here

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

        /* Show in Feed (only for searchmarks) */
        if (fViewer.getInput() instanceof SearchMarkReference) {
          OpenNewsAction showInFeedAction = new OpenNewsAction(selection);
          showInFeedAction.setText("Show in Feed");
          manager.appendToGroup("open", showInFeedAction);
        }

        /* Sticky */
        manager.appendToGroup("label", new MakeTypesStickyAction(selection));

View Full Code Here

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

          showInFeedAction.setText("Show in Feed");
          manager.appendToGroup("open", showInFeedAction);
        }

        /* Sticky */
        manager.appendToGroup("label", new MakeTypesStickyAction(selection));

        /* Label */
        MenuManager labelMenu = new MenuManager("Label");
        manager.appendToGroup("label", labelMenu);

View Full Code Here

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

          /* Open in FeedView */
          if (!fIsEmbedded) {
            manager.add(new Separator("internalopen")); //$NON-NLS-1$
            if (!fCurrentSelection.isEmpty()) {
              manager.appendToGroup("internalopen", new OpenNewsAction(fCurrentSelection, fBrowser.getControl().getShell())); //$NON-NLS-1$
              useSeparator = false;
            }
          }

          manager.add(useSeparator ? new Separator("open") : new GroupMarker("open")); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

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

        {

          /* Open in FeedView */
          manager.add(new Separator("internalopen"));
          if (!selection.isEmpty())
            manager.appendToGroup("internalopen", new OpenNewsAction(selection, getShell()));

          manager.add(new GroupMarker("open"));

          /* Show only when internal browser is used */
          if (!selection.isEmpty() && !fPreferences.getBoolean(DefaultPreferences.USE_CUSTOM_EXTERNAL_BROWSER) && !fPreferences.getBoolean(DefaultPreferences.USE_DEFAULT_EXTERNAL_BROWSER))
View Full Code Here

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

        /* Need a Selection here */
        if (selection.isEmpty())
          return;

        /* Open in FeedView */
        manager.appendToGroup("internalopen", new OpenNewsAction(selection, getShell()));

        /* Sticky */
        manager.appendToGroup("label", new MakeTypesStickyAction(selection));

        /* Label */
 
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.