It's all about the answers!

Ask a question

How to write to "Console" view from an Eclipse plugin


Ranjan Kumar (11244) | asked Feb 13 '15, 11:28 p.m.
I have written an Eclipse popupMenus plugin and the only way to display any message, I found in examples so far, are by using org.eclipse.jface.dialogs.MessageDialog (openWarning, openInformation, etc. methods).

When I use System.out.println() or System.err.println() the message does not get logged anywhere. How can I write to the "Console" view of the Eclipse?

Thanks

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Feb 14 '15, 9:05 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I would suggest to ask in the Eclipse Forums: http://eclipse.org/forums/

I also found this in my second attempt (using a search engine): http://stackoverflow.com/questions/1836981/eclipse-write-to-console

Comments
Ranjan Kumar commented Feb 15 '15, 1:22 a.m.

Thanks Ralph.
Using these two examples, I was able to write to console.

How do I write to the console from a plug-in?
  https://wiki.eclipse.org/FAQ_How_do_I_write_to_the_console_from_a_plug-in%3F
How do I find the active workbench page?
  https://wiki.eclipse.org/FAQ_How_do_I_find_the_active_workbench_page%3F

Thanks for the pointers.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.