Skip to main content


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 HFriend
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 405 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 JacobFriend
Messages: 191
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 HFriend
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:Custom native launcher
Next Topic:Override or extend delete and save actions
Goto Forum:
  


Current Time: Thu Apr 18 20:54:00 GMT 2024

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

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

Back to the top