Community
Participate
Working Groups
Follow up to bug 311307. Similar to the Java Stack Trace console, I think the Host OSGi console should have a close button/action. It would be nice to be able to open/close the console. I noticed that typing "disconnect" into the console closes it, but this is not very intuitive. As well, once disconnected, it does not seem possible to re-connect. Is this an OSGi limitation? If so, is ther someway we can tell the user that the connection is closed and is not useable?
Created attachment 168052 [details] patch to not reuse a closed ConsoleSession With the changes in bug 311307 PDE is now reusing the same ConsoleSession instance when it attempts to reopen the OSGi Console. After the method org.eclipse.osgi.framework.console.ConsoleSession.doClose() is called the ConsoleSession should not be used again. Instead a new ConsoleSession should be created by the factory. Here is a patch that attempts to fix this.
Thanks, Tom. This makes the console work for the "disconnect"/re-open scenario. +1. I'll open a new bug to add a close action/toolbar buttun (again :-)