Examples of appendToGroup()


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

    // Add action.
    try {
      if (popupmenu) {
        // Context menu need a newly created contribution item
        if (sep != null && sep.isGroupMarker())
          parent.appendToGroup(sep.getId(), ad.getAction());
        else
          parent.insertAfter(mgroup, ad.getAction());
      }
      else {
        // Normal menu need to add existing contribution item to
View Full Code Here

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

      }
      else {
        // Normal menu need to add existing contribution item to
        // remove it from menu listener
        if (sep != null && sep.isGroupMarker())
          parent.appendToGroup(sep.getId(), ad.getContributionItem());
        else
          parent.insertAfter(mgroup, ad.getContributionItem());
      }
    }
    catch (IllegalArgumentException e) {
View Full Code Here

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

  public void contributeToMenu(IMenuManager menu) {
    super.contributeToMenu(menu);

    IMenuManager editMenu= menu.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
    if (editMenu != null) {
      editMenu.appendToGroup(IContextMenuConstants.GROUP_ADDITIONS, fToggleInsertModeAction);
    }
/*
    addToMenu(menu);
*/
    if (extendedContributor != null) {
View Full Code Here

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

      return null;
    }
    LineItem item = (LineItem) bar.find(ID);
    if (item == null) {
      item = new LineItem(ID);
      bar.appendToGroup(StatusLineManager.END_GROUP, item);
      bar.update(true);
    }

    return item;
  }
View Full Code Here

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

  public void init(IPageBookViewPage page, IConsole console) {
    closeAction = new CloseConsoleAction(console);

    IToolBarManager manager = page.getSite().getActionBars().getToolBarManager();
    manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, closeAction);
  }

}
View Full Code Here

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

    public void init(IPageBookViewPage page, IConsole console) {
        IToolBarManager manager = page.getSite().getActionBars().getToolBarManager();

        closeAction = new IvyConsoleRemoveAction(console);
        manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, closeAction);

        filterLogAction = new IvyConsoleFilterAction((IvyConsole) console);
        manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, filterLogAction);
    }
View Full Code Here

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

        closeAction = new IvyConsoleRemoveAction(console);
        manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, closeAction);

        filterLogAction = new IvyConsoleFilterAction((IvyConsole) console);
        manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, filterLogAction);
    }

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

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

    private void createToolBar() {
        IToolBarManager mgr = getViewSite().getActionBars().getToolBarManager();

        mgr.add(new GroupMarker(CHOOSER_MENU_GROUP));
        mgr.appendToGroup(CHOOSER_MENU_GROUP, new ControlContribution("none"){ //$NON-NLS-1$
                    protected Control createControl( Composite parent ) {
                        configChooser = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);

                        // update the chooser with the currently selected layer
                        //
View Full Code Here

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

                    protected int computeWidth( Control control ) {
                        return 125;
                    }
                });
        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()

                        return 125;
                    }
                });
        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
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.