use of org.eclipse.debug.internal.ui.views.console.ProcessConsole in project n4js by eclipse.
the class GHOLD_45_CheckIgnoreAnnotationAtClassLevel_PluginUITest method getConsoleContent.
private String getConsoleContent() {
waitForIdleState();
final IViewPart viewPart = showView(CONSOLE_VIEW_ID);
final ConsoleView consoleView = assertInstanceOf(viewPart, ConsoleView.class);
final IConsole console = consoleView.getConsole();
// Can be null, if nothing was logged to the console yet. Such cases return with empty string instead.
if (console == null) {
return "";
}
final ProcessConsole processConsole = assertInstanceOf(console, ProcessConsole.class);
return processConsole.getDocument().get();
}
Aggregations