Writing to stdout [message #53193] |
Thu, 02 April 2009 05:06  |
Eclipse User |
|
|
|
Hi,
Within my plugin I'm writing output to stdout (some debugging stuff and
also the compiler-output from the external compiler I am launching). When
started within eclipse in a runtime workbench everything works fine -
output goes to the console of the calling eclipse workbench.
For installing the plugin I made a feature project containing only this
plugin. The plugin runs - editor highlighting, menu contributions etc. are
visible but there is no output to the console. Do I have to write
somewhere else? At the moment I am simply calling System.out.print...
There is no error output, so I assume that the action is executed but
somehow the output gets lost.
any help is welcome :)
regards, Kathi
|
|
|
Re: Writing to stdout [message #53219 is a reply to message #53193] |
Thu, 02 April 2009 08:25  |
Eclipse User |
|
|
|
Hi,
I've to correct myself - stdout was wrong - I have to write to the eclipse
console explicitely. But still... the problem is the same. Output appears
in the runtime workbench, once the plugin is installed in the development
workbench, there is no output... where is the problem?
I'll post a code-snippet, it's inside the main plugin class:
public void start(BundleContext context) throws Exception {
super.start(context);
....
....
MessageConsole myConsole = new MessageConsole("My Console", null);
ConsolePlugin.getDefault().getConsoleManager().addConsoles(n ew
IConsole[]{ myConsole });
ConsolePlugin.getDefault().getConsoleManager().showConsoleVi ew(myConsole);
MessageConsoleStream stream = myConsole.newMessageStream();
stream.println("Hi there!");
stream.close();
}
regards, Kathi
|
|
|
Re: Writing to stdout [message #594492 is a reply to message #53193] |
Thu, 02 April 2009 08:25  |
Eclipse User |
|
|
|
Hi,
I've to correct myself - stdout was wrong - I have to write to the eclipse
console explicitely. But still... the problem is the same. Output appears
in the runtime workbench, once the plugin is installed in the development
workbench, there is no output... where is the problem?
I'll post a code-snippet, it's inside the main plugin class:
public void start(BundleContext context) throws Exception {
super.start(context);
....
....
MessageConsole myConsole = new MessageConsole("My Console", null);
ConsolePlugin.getDefault().getConsoleManager().addConsoles(n ew
IConsole[]{ myConsole });
ConsolePlugin.getDefault().getConsoleManager().showConsoleVi ew(myConsole);
MessageConsoleStream stream = myConsole.newMessageStream();
stream.println("Hi there!");
stream.close();
}
regards, Kathi
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds