Package org.eclipse.jface.action

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


   
    @Override
  protected void fillCoolBar(ICoolBarManager coolBar) {
        IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
        toolbar.add(new GroupMarker(IWorkbenchActionConstants.TOOLBAR_FILE));
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, newAction);
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, saveAction);
        coolBar.add(new ToolBarContributionItem(toolbar, "main"));  
    }
}
View Full Code Here

    @Override
  protected void fillCoolBar(ICoolBarManager coolBar) {
        IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
        toolbar.add(new GroupMarker(IWorkbenchActionConstants.TOOLBAR_FILE));
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, newAction);
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, saveAction);
        coolBar.add(new ToolBarContributionItem(toolbar, "main"));  
    }
}
View Full Code Here

    private CloseConsoleAction closeAction;

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

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

        IToolBarManager toolbarManager = bars.getToolBarManager();

        restartLaunchAction = new RestartLaunchAction(page, processConsole);
        terminateAllLaunchesAction = new TerminateAllLaunchesAction();

        toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, restartLaunchAction);
        toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, terminateAllLaunchesAction);

        bars.updateActionBars();

    }
View Full Code Here

        restartLaunchAction = new RestartLaunchAction(page, processConsole);
        terminateAllLaunchesAction = new TerminateAllLaunchesAction();

        toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, restartLaunchAction);
        toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, terminateAllLaunchesAction);

        bars.updateActionBars();

    }
View Full Code Here

        IActionBars bars = getSite().getActionBars();

        IToolBarManager toolbarManager = bars.getToolBarManager();

        toolbarManager.prependToGroup(IConsoleConstants.LAUNCH_GROUP, new GroupMarker(SCRIPT_GROUP));
        toolbarManager.appendToGroup(SCRIPT_GROUP, new Separator());

        toolbarManager.appendToGroup(SCRIPT_GROUP, closeConsoleAction);

        toolbarManager.appendToGroup(SCRIPT_GROUP, saveSessionAction);
View Full Code Here

        IToolBarManager toolbarManager = bars.getToolBarManager();

        toolbarManager.prependToGroup(IConsoleConstants.LAUNCH_GROUP, new GroupMarker(SCRIPT_GROUP));
        toolbarManager.appendToGroup(SCRIPT_GROUP, new Separator());

        toolbarManager.appendToGroup(SCRIPT_GROUP, closeConsoleAction);

        toolbarManager.appendToGroup(SCRIPT_GROUP, saveSessionAction);

        ScriptConsole console = (ScriptConsole) getConsole();
        console.createActions(toolbarManager);
View Full Code Here

        toolbarManager.prependToGroup(IConsoleConstants.LAUNCH_GROUP, new GroupMarker(SCRIPT_GROUP));
        toolbarManager.appendToGroup(SCRIPT_GROUP, new Separator());

        toolbarManager.appendToGroup(SCRIPT_GROUP, closeConsoleAction);

        toolbarManager.appendToGroup(SCRIPT_GROUP, saveSessionAction);

        ScriptConsole console = (ScriptConsole) getConsole();
        console.createActions(toolbarManager);

        bars.updateActionBars();
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.