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