Nattable creation in IWorkbenchSiteProgressService [message #1062448] |
Fri, 07 June 2013 14:28  |
Eclipse User |
|
|
|
Hi,
I am having an eclipse plugin which when opened does a background job (using IWorkbenchSiteProgressService). I schedule a job and then update Nattable post the job is done in the UI thread(using syncExec from Display) and it works perfectly except that the grid is not shown until i go to another view or change perspective and come back to the view. Its a refresh issue i guess, but I do not know how to get the plugin view to refresh so that the grid is visible.
Example,
IWorkbenchSiteProgressService siteService = (IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
siteService.schedule( new Job()
{
protected IStatus run(IProgressMonitor monitor)
{
//Get data
dataList = GetFileData();
getDisplay().syncExec( new Runnable()
{
public void run()
{
//Create Nattable here with the data
}
} );
monitor.done();
return Status.OK_STATUS;
}
}
)
The workObject
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27635 seconds