Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Writing to stdout
Writing to stdout [message #53193] Thu, 02 April 2009 05:06 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Writing to stdout
Next Topic:Get the path of the current document
Goto Forum:
  


Current Time: Sun May 11 09:40:27 EDT 2025

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

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

Back to the top