Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Writing to stdout
Writing to stdout [message #53193] Thu, 02 April 2009 09:06 Go to next message
Katharina Brandl is currently offline Katharina BrandlFriend
Messages: 14
Registered: July 2009
Junior Member
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 12:25 Go to previous message
Katharina Brandl is currently offline Katharina BrandlFriend
Messages: 14
Registered: July 2009
Junior Member
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 12:25 Go to previous message
Katharina Brandl is currently offline Katharina BrandlFriend
Messages: 14
Registered: July 2009
Junior Member
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: Thu Apr 25 23:44:20 GMT 2024

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

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

Back to the top