Skip to main content



      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 06:40
Eclipse UserFriend
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 Mar 15 04:54:59 EDT 2025

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

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

Back to the top