Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Console text is smeared
Console text is smeared [message #1089843] Mon, 19 August 2013 06:18 Go to next message
Eclipse UserFriend
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 449 times)
Re: Console text is smeared [message #1091576 is a reply to message #1089843] Wed, 21 August 2013 13:34 Go to previous messageGo to next message
Eclipse UserFriend
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 19:22 Go to previous message
Eclipse UserFriend
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: Fri Mar 21 17:37:59 EDT 2025

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

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

Back to the top