Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2014-04-04 16:44:55 +0000
committerPascal Rapicault2014-04-04 16:44:55 +0000
commitce8ec364c1523fc55b666f134a7bbf8fe044c65f (patch)
treeb8b197031639f8b560a0aee4844a5825539916f7
parentfaaf1d4d76b2770c003a4c9ba70b0311d433d8b7 (diff)
downloadrt.equinox.p2-ce8ec364c1523fc55b666f134a7bbf8fe044c65f.tar.gz
rt.equinox.p2-ce8ec364c1523fc55b666f134a7bbf8fe044c65f.tar.xz
rt.equinox.p2-ce8ec364c1523fc55b666f134a7bbf8fe044c65f.zip
Bug 384646 - [ui] 'type filter text' box searches hangs
When repo is loaded for the first time, pre-populate the cache for the categories. Signed-off-by: Pascal Rapicault <pascal.rapicault@ericsson.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/RemoteQueriedElement.java7
1 files changed, 5 insertions, 2 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 65e39d240..f2c19d926 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
@@ -32,7 +32,11 @@ public abstract class RemoteQueriedElement extends QueriedElement implements IDe
public void fetchDeferredChildren(Object o, IElementCollector collector, IProgressMonitor monitor) {
try {
Object[] children = fetchChildren(o, monitor);
-
+ for (Object child : children) {
+ if (child instanceof CategoryElement) {
+ ((CategoryElement) child).fetchChildren(child, monitor);
+ }
+ }
if (!monitor.isCanceled()) {
collector.add(children, monitor);
}
@@ -40,7 +44,6 @@ public abstract class RemoteQueriedElement extends QueriedElement implements IDe
// Nothing to do
}
collector.done();
-
}
public ISchedulingRule getRule(Object object) {

Back to the top