Twitter github

Easier Access to the OSGi Console

In Eclipse 3.6 M7, it will be easier to access the OSGi Console within the running Eclipse. The Equinox team added a org.eclipse.osgi.framework.console.ConsoleSession service that you can use to get the input and output to a console session. The PDE team took advantage of this recently by extending the org.eclipse.ui.console.consoleFactories extension point and allowing you to bring up the OSGi console easily…

This was feature was really put in for some members of the Equinox team but thank you to Dave Carver for encouraging me to blog about it so other people would know about.

  • bobbalfe

    So just to be clear, this is the console for the Eclipse IDE, not the console for the application you are debugging right?

  • Yes, this is for the current Eclipse IDE you're running. Not the application that you are debgugging. This essentially eliminates the need for adding a -console when you boot up Eclipse if you simply use this new console.

  • vogella

    Cool feature. Thanks!

  • How about RCP. Do I contribute this feature to my RCP like Log View?

  • I don't have an easy answer for you kompiro but I believe it should be possible. The first thing you would do is fine the plug-ins responsible for TM (this is specified in the TM feature) and then get the view IDs from the plugin.xml and go from there.

  • Nano

    Seems with 3.6M6 I can't import the package org.eclipse.osgi.framework.console in order to create a CommandProvider. Was this a casualty of the new behavior?

  • Hrmm… it should be there… works for me… is your target properly setup?

  • Nano

    Seems with 3.6M6 I can't import the package org.eclipse.osgi.framework.console in order to create a CommandProvider. Was this a casualty of the new behavior?

  • Hrmm… it should be there… works for me… is your target properly setup?