Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-01-23 16:50:16 +0000
committerSusan Franklin2009-01-23 16:50:16 +0000
commitbb7c847b01aee3e11cedb2f824ef93eb60ca3e6d (patch)
treeae6088ba304a694e658d052618bbc32979cb2769
parent8bacb8b756319b239c7df11f52c5a3e5b668231d (diff)
downloadrt.equinox.p2-bb7c847b01aee3e11cedb2f824ef93eb60ca3e6d.tar.gz
rt.equinox.p2-bb7c847b01aee3e11cedb2f824ef93eb60ca3e6d.tar.xz
rt.equinox.p2-bb7c847b01aee3e11cedb2f824ef93eb60ca3e6d.zip
Bug 262044 - [ui] Available Software refresh occasionally yields blank resultsR34x_v20090123
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/RemoteQueriedElement.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/RemoteQueriedElement.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/RemoteQueriedElement.java
index 15f6317a5..d4d5bd5dd 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/RemoteQueriedElement.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/RemoteQueriedElement.java
@@ -26,8 +26,6 @@ import org.eclipse.ui.progress.IElementCollector;
*/
public abstract class RemoteQueriedElement extends QueriedElement implements IDeferredWorkbenchAdapter {
- boolean alreadyCollected = false;
-
protected RemoteQueriedElement() {
super(null);
}
@@ -39,10 +37,8 @@ public abstract class RemoteQueriedElement extends QueriedElement implements IDe
public void fetchDeferredChildren(Object o, IElementCollector collector, IProgressMonitor monitor) {
try {
Object[] children = fetchChildren(o, monitor);
-
- if (!monitor.isCanceled() && !alreadyCollected) {
+ if (!monitor.isCanceled()) {
collector.add(children, monitor);
- alreadyCollected = true;
}
} catch (OperationCanceledException e) {
// Nothing to do

Back to the top