Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Updating tableview from non-UI thread
Updating tableview from non-UI thread [message #1691053] Wed, 01 April 2015 21:48
Mathew Benson is currently offline Mathew BensonFriend
Messages: 12
Registered: July 2010
Junior Member
I'm writing a plugin that uses an asynchronous Redis client to populate data in a tableview. I have to create a separate listener thread for new data, but when I try to write the new data to the tableview, I get the invalid thread access error. When I wrap this around:

Display.getDefault().asyncExec(new Runnable()

It works but the update is unacceptably slow. For my test, I have 8 rows with 4 columns that should be updated at 1 Hz. It takes 30 to 60 seconds just to get the initial update. Obviously, this is not the best way to do this. I have views in the making that I want to eventually update at 30 Hz. What's the best way to do this? Is it possible to add functions to the main event thread to pull new data in at a higher rate rather than push it whenever the UI gets around to it.
Previous Topic:how to make sure eclipse load the velocity bundled with my jar
Next Topic:Platform independent target definition
Goto Forum:
  


Current Time: Thu Apr 25 22:52:24 GMT 2024

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

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

Back to the top