Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2007-11-29 10:34:53 -0500
committerAnton Leherbauer2007-11-29 10:34:53 -0500
commitd72fec146e1ce7d55d7beff87801524adb400241 (patch)
treecb72347d4602221b19d3d9173bee7781be20bda3
parent51343e57a96e8daa81ad6d44211c486561eaacb3 (diff)
downloadorg.eclipse.cdt-d72fec146e1ce7d55d7beff87801524adb400241.tar.gz
org.eclipse.cdt-d72fec146e1ce7d55d7beff87801524adb400241.tar.xz
org.eclipse.cdt-d72fec146e1ce7d55d7beff87801524adb400241.zip
Fix for 211251: Open Element takes too long when using for large project
-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 f245cd6021..edd36aaefb 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