private void runInUI(Runnable runnable) {
   Control control = resultSetViewer.getControl();
   if (!control.isDisposed()) {
     control.getDisplay().asyncExec(runnable);
   }
 }