Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Console text is smeared
Console text is smeared [message #1089843] Mon, 19 August 2013 10:18 Go to next message
Avner H is currently offline Avner H
Messages: 2
Registered: August 2013
Junior Member
I'm trying to write to the console by getting a reference to the console's document and using the command:
consoleDoc.set(text)


Later, I add hyperlinks. This is all done in a thread using:

Display.getDefault().asyncExec(new Runnable() {public void run(){
	writeToConsole();
     }
});


However, the text shows up smeared in the console (see attached screenshot).

Any idea why? Is this an Eclipse bug?

index.php/fa/15938/0/
  • Attachment: console.jpg
    (Size: 34.30KB, Downloaded 160 times)
Re: Console text is smeared [message #1091576 is a reply to message #1089843] Wed, 21 August 2013 17:34 Go to previous messageGo to next message
Martin Jacob is currently offline Martin Jacob
Messages: 116
Registered: July 2009
Senior Member
Hi,

I am using the org.eclipse.ui.console.MessageConsole as well and write text to
org.eclipse.ui.console.MessageConsoleStream. You get the stream from the MessageConsole by calling
newMessageStream().

Writing to the stream might be better than set text directly to the document.



schrieb Avner H, Am 19.08.2013 16:14:
> I'm trying to write to the console by getting a reference to the console's document and using the command:
> consoleDoc.set(text)
>
> Later, I add hyperlinks. This is all done in a thread using:
>
> Display.getDefault().asyncExec(new Runnable() {public void run(){
> writeToConsole();
> }
> });
>
> However, the text shows up smeared in the console (see attached screenshot).
>
> Any idea why? Is this an Eclipse bug?
>
>
>
Re: Console text is smeared [message #1092532 is a reply to message #1091576] Thu, 22 August 2013 23:22 Go to previous message
Avner H is currently offline Avner H
Messages: 2
Registered: August 2013
Junior Member
Thanks for the answer.
I tried that at first, but what I need to do is to write some text into the console and then add hyperlinks to the text. If I use MessageConsole then by the time I'm adding the hyperlinks the text that was written into the MessageConsole still hasn't appeared in the console itself, and I'm getting a bad location exception.
Previous Topic:launcher.openFile not working on RCP
Next Topic:Override or extend delete and save actions
Goto Forum:
  


Current Time: Thu Oct 23 03:15:17 GMT 2014

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

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