Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with MessageConsole and new line(Only on windows)
Problem with MessageConsole and new line [message #1064230] Tue, 18 June 2013 10:40
Marco Orlandin is currently offline Marco Orlandin
Messages: 6
Registered: January 2013
Junior Member
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.Cool, 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.
Previous Topic:Closing (not hiding) a part
Next Topic:Which eclipse listener should I use to add annotations to an editor
Goto Forum:
  


Current Time: Sat Oct 25 20:41:42 GMT 2014

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

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