Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableViewer Refresh
TableViewer Refresh [message #467749] Sun, 05 February 2006 23:02 Go to next message
Eclipse UserFriend
Originally posted by:

I have a TableViewer in a ViewPart. But the content is being created in a

Everything runs without error but the content is not displayed when the
Job completes. If I click on one of the table columns then the content is
displayed. The content is also displayed if I remove the focus and

If anyone has any ideas for displaying the content when the job completes
I would appreciate it.

TableViewer code :

tableViewer = new TableViewer(parent, SWT.SINGLE | SWT.FULL_SELECTION);
tableViewer.setContentProvider(new NewsContentProvider());
tableViewer.setLabelProvider(new NewsLabelProvider());
tableViewer.setSorter(new NewsViewerSorter());

....creating the TableColumns and attach the listeners for sorting...

//Generate the news -- (News extends Job)
news = new News(id);
news.addJobChangeListener(new JobChangeAdapter() {
public void done(IJobChangeEvent event) {
//Here I have tried everything but I cannot get the content to be


Re: TableViewer Refresh [message #467819 is a reply to message #467749] Tue, 07 February 2006 11:07 Go to previous message
Eclipse UserFriend
Originally posted by:

I think you don't use the right way to control your GUI.
You have only one UI thread in the instead of "Job" use the
Display.asyncExec/syncExec options.
Previous Topic:JFace Wizard question...
Next Topic:Refreshing
Goto Forum:

Current Time: Sat Jan 18 19:56:19 GMT 2020

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

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

Back to the top