Java 类org.eclipse.ui.console.actions.CloseConsoleAction 实例源码

项目:cft    文件:CloudFoundryConsolePageParticipant.java   
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);
    }
}
项目:dockerfoundry    文件:DockerFoundryConsolePageParticipant.java   
public void init(IPageBookViewPage page, IConsole console) {
    closeAction = new CloseConsoleAction(console);

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