Problem with MessageConsole and new line [message #1064230] |
Tue, 18 June 2013 06:40 |
Eclipse User |
|
|
|
Hi, in an rcp application there are some strings that need to be printed out to a MessageConsole (in the following piece of code console is a reference to an eclipse MessageConsole).
public void addMessage(final String message) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
MessageConsoleStream out = console.newMessageStream();
out.println(message);
for (VErrorPreview vep : ePreviews)
vep.addMessage(message);
}
});
}
If i call this method more times only the first string has a new line at the end, the others are one after another. This seem to happen only on windows (with eclipse 4.2 and 3. , and another strange thing is that if i use print instead of println i have the same result, the first string, a new line and then the others one after another.
|
|
|
Powered by
FUDForum. Page generated in 0.02363 seconds