Empty console content when opened programmatically in the JEE perspective [message #330128] |
Tue, 15 July 2008 17:44 |
Eclipse User |
|
|
|
Originally posted by: spamdeadhole.yahoo.ca
Hi,
I developed a plug-in on Eclipse 3.3 EE that worked fine until I upgraded
to Eclipse 3.4 and I need help to figure out what is wrong.
When I start Eclipse in a new workspace, it opens in the JavaEE
perspective by default. From a menu, I start a process. The plug-in
programmatically open the console view using the following code:
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
if (window == null && workbench.getWorkbenchWindowCount() > 0) {
window = workbench.getWorkbenchWindows()[0];
}
window.getActivePage().showView("org.eclipse.ui.console.ConsoleView ");
At this point, the Console view is opened in the perspective, but does not
display anything (it remains grey with the message "No consoles to display
at this time"). It should display the application stdout as it did with
3.3. If I switch to the debug perspective, the console suddenly displays
the values and no info is missing. So it seems like the console actually
got the content, but it was not displayed. From there I can go back to the
JavaEE perspective and my console content is fine.
Am I doing something wrong? Is this a bug in 3.4? Is there a better way to
programmatically open the console?
Thanks alot!
Alain
|
|
|
Powered by
FUDForum. Page generated in 1.70534 seconds