Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » System console in plugin
System console in plugin [message #312718] Fri, 16 February 2007 15:59 Go to next message
Doug Orr is currently offline Doug OrrFriend
Messages: 21
Registered: July 2009
Junior Member
I have a Java program that writes to System.out. When I run this as a
project in Eclipse the output displays in the console view but when I run
this program as a plugin the console output stream does not appear in the
console view.

Can anyone suggest how to make System.out available to the plugin and how
to map it to an Eclipse Console view?
Re: System console in plugin [message #312719 is a reply to message #312718] Fri, 16 February 2007 16:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

See the FAQ: How do I write to the console from a plug-in
http://wiki.eclipse.org/index.php/FAQ_How_do_I_write_to_the_ console_from_a_plug-in%3F
--
Derek


Doug Orr wrote:
> I have a Java program that writes to System.out. When I run this as a
> project in Eclipse the output displays in the console view but when I
> run this program as a plugin the console output stream does not appear
> in the console view.
>
> Can anyone suggest how to make System.out available to the plugin and
> how to map it to an Eclipse Console view?
>
Re: System console in plugin [message #312722 is a reply to message #312719] Fri, 16 February 2007 17:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Derek Morris" <dmsubs@NOSPAM.consertum.com> wrote in message
news:er4lr0$3l1$1@utils.eclipse.org...
> See the FAQ: How do I write to the console from a plug-in
> http://wiki.eclipse.org/index.php/FAQ_How_do_I_write_to_the_ console_from_a_plug-in%3F

BTW, FireFox 2.0 seems to have some problems with that link; clicking on it
seems to turn the %3F into a ? prematurely, and that character then fails to
resolve so I end up at a page with no text. (I suspect this is a bug in
FireFox.)

If that happens in your browser, just delete the ? and replace it with %3F,
and then refresh.
Re: System console in plugin [message #312723 is a reply to message #312722] Fri, 16 February 2007 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

Strange, because I use Firefox2.0 and copied the link from it!
--
Derek


Walter Harley wrote:
> "Derek Morris" <dmsubs@NOSPAM.consertum.com> wrote in message
> news:er4lr0$3l1$1@utils.eclipse.org...
>> See the FAQ: How do I write to the console from a plug-in
>> http://wiki.eclipse.org/index.php/FAQ_How_do_I_write_to_the_ console_from_a_plug-in%3F
>
> BTW, FireFox 2.0 seems to have some problems with that link; clicking on it
> seems to turn the %3F into a ? prematurely, and that character then fails to
> resolve so I end up at a page with no text. (I suspect this is a bug in
> FireFox.)
>
> If that happens in your browser, just delete the ? and replace it with %3F,
> and then refresh.
>
>
Re: System console in plugin [message #312724 is a reply to message #312723] Fri, 16 February 2007 18:21 Go to previous messageGo to next message
Doug Orr is currently offline Doug OrrFriend
Messages: 21
Registered: July 2009
Junior Member
Thanks. This is great. Is there any way to map the predefined System.out
PrintStream to the MessageStream opened in the example, or do I have to
change the original source code to write to a passed message stream?
Re: System console in plugin [message #312725 is a reply to message #312724] Fri, 16 February 2007 18:45 Go to previous message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

Change the source code, I'm afraid. I've added a utility class with static
methods, so I can do this from any of my plugins.
--
Derek


Doug Orr wrote:
> Thanks. This is great. Is there any way to map the predefined System.out
> PrintStream to the MessageStream opened in the example, or do I have to
> change the original source code to write to a passed message stream?
>
Previous Topic:programmatically create new PlugIn project
Next Topic:[DataBinding] Binding data from multiple sources into TableViewer
Goto Forum:
  


Current Time: Tue Jul 16 07:50:57 GMT 2024

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

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

Back to the top