Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/opentype/ElementSelectionDialog.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/opentype/ElementSelectionDialog.java b/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/opentype/ElementSelectionDialog.java
index f245cd60215..edd36aaefbf 100644
--- a/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/opentype/ElementSelectionDialog.java
+++ b/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/opentype/ElementSelectionDialog.java
@@ -81,13 +81,12 @@ public class ElementSelectionDialog extends TypeSelectionDialog {
public void run() {
if (!shell.isDisposed() && !monitor.isCanceled()) {
setListElements(elements);
- done(Status.OK_STATUS);
updateOkState();
}
}};
shell.getDisplay().asyncExec(update);
monitor.done();
- return Job.ASYNC_FINISH;
+ return Status.OK_STATUS;
}
}
return Status.CANCEL_STATUS;
@@ -349,7 +348,7 @@ public class ElementSelectionDialog extends TypeSelectionDialog {
newPrefix= null;
needQuery= needQuery || fCurrentPrefix != null;
}
- if(needQuery) {
+ if(needQuery || fUpdateJob.getState() == Job.WAITING || fUpdateJob.getState() == Job.SLEEPING) {
fUpdateJob.cancel();
fCurrentPrefix= newPrefix;
fUpdateJob.schedule(200);

Back to the top