Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Empty console content when opened programmatically in the JEE perspective
Empty console content when opened programmatically in the JEE perspective [message #330128] Tue, 15 July 2008 21:44
Eclipse UserFriend
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
Previous Topic:Show text and image for an Action in a Toolbar
Next Topic:headless not entirely headless
Goto Forum:
  


Current Time: Wed Jul 24 13:41:13 GMT 2024

Powered by FUDForum. Page generated in 0.03063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top