Permalink
Browse files

Always make the refresh in UI thread

  • Loading branch information...
1 parent cb0a9c4 commit 09e98748d543cb64276a4e00de6901da47a35e34 @jonalv jonalv committed Jul 20, 2009
@@ -11,6 +11,7 @@
package net.bioclipse.databases;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.navigator.CommonNavigator;
@@ -31,6 +32,10 @@ protected IAdaptable getInitialInput() {
}
public void fireRefresh() {
- getCommonViewer().refresh();
+ Display.getDefault().asyncExec( new Runnable() {
+ public void run() {
+ getCommonViewer().refresh();
+ }
+ });
}
}

0 comments on commit 09e9874

Please sign in to comment.