1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

don't use the control if already disposed.

This commit is contained in:
Warren Paul 2008-05-08 23:55:09 +00:00
parent 19b5878bd9
commit 97f1304af9

View file

@ -56,8 +56,8 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
protected IStatus run(IProgressMonitor monitor) {
IStatus status = em.refreshExecutables(monitor);
// Are we in the UIThread? If so spin it until we are
// done
// Are we in the UIThread? If so spin it until we are done
if (!viewer.getControl().isDisposed()) {
if (viewer.getControl().getDisplay().getThread() == Thread.currentThread()) {
viewer.refresh(inputElement);
} else {
@ -67,6 +67,7 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
}
});
}
}
monitor.done();
return status;