org.eclipse.ui.internal.console.ConsoleView Java Examples
The following examples show how to use
org.eclipse.ui.internal.console.ConsoleView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GHOLD_45_CheckIgnoreAnnotationAtClassLevel_PluginUITest.java From n4js with Eclipse Public License 1.0 | 5 votes |
private String getConsoleContent() { waitForIdleState(); final IViewPart viewPart = EclipseUIUtils.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); final String content = processConsole.getDocument().get(); return content; }
Example #2
Source File: InvasiveThemeHijacker.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
protected void hijackConsole(IViewPart view) { if (view instanceof ConsoleView) { IPage currentPage = ((ConsoleView) view).getCurrentPage(); if (currentPage != null) { hookTheme(currentPage.getControl(), false); } } }