Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Illegal Thread Access
Illegal Thread Access [message #246131] Thu, 27 May 2004 06:50 Go to next message
Eclipse UserFriend
Originally posted by: giuseppeacito.mclink.it

Hi all,

I've an IStreamListener who monitors the output of an external process,
and when it catches a specified pattern, it should refresh a list in a
ViewPart. I'm aware that the IStreamListener is out of the main UI Thread,
how can I synchronize the two classes? Whenever I try to call the refresh
method over the Viewer inside the StreamListener, it blocks.

I'm using Eclipse 3.0M8

Thanks,
Giuseppe
Re: Illegal Thread Access [message #246254 is a reply to message #246131] Thu, 27 May 2004 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You need to use Display.asyncExec



--
Thanks, Rich Kulp

Re: Illegal Thread Access [message #247486 is a reply to message #246254] Mon, 31 May 2004 06:29 Go to previous message
Eclipse UserFriend
Originally posted by: giuseppeacito.mclink.it

On Thu, 27 May 2004 09:49:36 -0400, Rich Kulp wrote:

> You need to use Display.asyncExec

Thank you very much, I was a little lost (I thought I had to watch for
another Listener to register.

Thanks

Giuseppe
Previous Topic:ant native2ascii in Eclipse 2.1.3
Next Topic:java.util.Properties in to a IFile??
Goto Forum:
  


Current Time: Thu Jul 24 11:18:34 EDT 2025

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

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

Back to the top