Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem updating 2 views in parallel(Problem updating 2 views in Parallel)
Problem updating 2 views in parallel [message #642933] Fri, 03 December 2010 12:14 Go to next message
Pandit  is currently offline Pandit
Messages: 1
Registered: December 2010
Junior Member
I have 2 views in my application both of which get values to be populated from a single source.
When data is received from the source, event gets triggered on both views to get data pertaining to that specific view from the source and update the view.

One is a JFace TableView and other is Tree view.

Now, when both views are displayable at the same time in te eclipse application and data is sent at a fast rate both views try to pick the data and update its own view and the UI thread hangs.

How do we handle this scenario?
Re: Problem updating 2 views in parallel [message #643016 is a reply to message #642933] Fri, 03 December 2010 16:25 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Pandit.

Process in a separate thread. When it is time to update the UI then call

Display.syncExec(Runnable)

You can also process inside a Job. This will give the user some visual
feedback.

Best regards,

Wim



> I have 2 views in my application both of which get values to be populated
from a single source.
> When data is received from the source, event gets triggered on both views
to get data pertaining to that specific view from the source and update the
view.
>
> One is a JFace TableView and other is Tree view.
>
> Now, when both views are displayable at the same time in te eclipse
application and data is sent at a fast rate both views try to pick the data
and update its own view and the UI thread hangs.
>
> How do we handle this scenario?
Previous Topic:Export Deployable Feature for java web start - doesn't create JNLP
Next Topic:where to add license check
Goto Forum:
  


Current Time: Thu Sep 18 15:48:12 GMT 2014

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

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