Package org.eclipse.jface.action

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


    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

        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

    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

                    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

                        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

                    }
                });
        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

            // 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

    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

    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

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.