Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Chen2012-07-04 03:04:39 +0000
committerWilliam Chen2012-07-04 03:04:39 +0000
commit87fdb4fdcec02792859111d656ae93f5ee33f9d8 (patch)
treeb42cc7818a0f73dfc3f712ec08cb932f5ccbf0a7 /target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui
parent829ee95915e16dbc702b1dd671379296bdd61bb8 (diff)
downloadorg.eclipse.tcf-87fdb4fdcec02792859111d656ae93f5ee33f9d8.tar.gz
org.eclipse.tcf-87fdb4fdcec02792859111d656ae93f5ee33f9d8.tar.xz
org.eclipse.tcf-87fdb4fdcec02792859111d656ae93f5ee33f9d8.zip
Target Explorer: Start querying the root's children upon showing up.
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/controls/NavigatorContentProvider.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/controls/NavigatorContentProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/controls/NavigatorContentProvider.java
index ba500863c..6a65b751c 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/controls/NavigatorContentProvider.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/controls/NavigatorContentProvider.java
@@ -101,7 +101,11 @@ public abstract class NavigatorContentProvider extends TreeContentProvider impl
final IPeerModel peerNode = (IPeerModel)parentElement;
ITreeNodeModel model = doGetModel(peerNode);
if (isRootNodeVisible()) {
- return new Object[] { model.getRoot() };
+ AbstractTreeNode root = model.getRoot();
+ if(!root.childrenQueried && !root.childrenQueryRunning) {
+ root.queryChildren();
+ }
+ return new Object[] { root };
}
return getChildren(model.getRoot());
} else if (parentElement instanceof AbstractTreeNode) {

Back to the top