public ITernConsole getConsole(IIDETernProject project) { if (project.isServerDisposed()) { return null; } if (!PlatformUI.isWorkbenchRunning()) { return null; } TernConsole console = TernConsole.getOrCreateConsole(project); TernConsoleHelper.ensureConsole(console); return console; }
public void closeConsole(IIDETernProject project) { TernConsole console = TernConsole.getConsole(project); if (console != null) { TernConsoleHelper.closeConsole(console); } }