Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to print to Eclipse console, in an uncomom way???
How to print to Eclipse console, in an uncomom way??? [message #154734] Fri, 16 April 2004 17:40 Go to next message
Eclipse UserFriend
Originally posted by: pimenta.inatel.br

Hi.

I have always used System.out.println to print to Eclipse console.
However, today my project is a plugin and in this case System.out.println
doesn't work if I use my plugin. Why such a thing happens?


How can I do a message appears in Eclipse console, for example, a compile
message at run time, if my project is a plugin to compile some code?

Is it possible to have a reference to Eclipse console instance, at run
time, and call some method to print messagens on it?

Any hint will be very helpful.

Thanks.

Rodrigo.
=========
Re: How to print to Eclipse console, in an uncomom way??? [message #155001 is a reply to message #154734] Mon, 19 April 2004 17:50 Go to previous message
Eclipse UserFriend
Rodrigo,

at what console are you looking? You should see the output in the
console of the hosting vm, which is likely the runtime-workbench of
Eclipse or I guess you would also see the output in console if you
launch eclipse from the command line, but the latter is a guess I've
never tried myself.

What exactly are you looking for? System.out is not really
sophisticated. If you're looking for something you need during
development, it should be sufficient to log to the console of the
runtime workbench. If you need to log events, like errors, you can
access the eclipse log by calling Plugin.getLog().

Ever had a look at the trace tab in the eclipse run dialog for
runtime-workbenches? You can see how tracing to sysout can be
instrumentalized.

Cheers,
Mariano

Rodrigo Pimenta wrote:
> Hi.
>
> I have always used System.out.println to print to Eclipse console.
> However, today my project is a plugin and in this case System.out.println
> doesn't work if I use my plugin. Why such a thing happens?
>
>
> How can I do a message appears in Eclipse console, for example, a compile
> message at run time, if my project is a plugin to compile some code?
>
> Is it possible to have a reference to Eclipse console instance, at run
> time, and call some method to print messagens on it?
>
> Any hint will be very helpful.
>
> Thanks.
>
> Rodrigo.
> =========
>
>
>
Previous Topic:how to exclude open project from auto build?
Next Topic:Quick class open
Goto Forum:
  


Current Time: Wed Jul 02 19:57:13 EDT 2025

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

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

Back to the top