Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Chen2012-05-31 09:39:32 +0000
committerWilliam Chen2012-05-31 09:39:32 +0000
commitd04726e7b18eb761b6d7e0c645004d9362160a30 (patch)
tree0a6da1f5f135167f07e60af1733af086a6434089 /target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui
parent41608545c531048bc3d0c1221de17e52ea92f2d6 (diff)
downloadorg.eclipse.tcf-d04726e7b18eb761b6d7e0c645004d9362160a30.tar.gz
org.eclipse.tcf-d04726e7b18eb761b6d7e0c645004d9362160a30.tar.xz
org.eclipse.tcf-d04726e7b18eb761b6d7e0c645004d9362160a30.zip
Target Explorer: Add isLeaf method to ILazyLoader to quickly bypass some
leaf nodes.
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/internal/adapters/FSTreeNodeAdapterFactory.java1
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeLoader.java9
2 files changed, 9 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeAdapterFactory.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeAdapterFactory.java
index 0ef393d90..ce12fb273 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeAdapterFactory.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeAdapterFactory.java
@@ -60,7 +60,6 @@ public class FSTreeNodeAdapterFactory implements IAdapterFactory {
return new PersistableNode(node);
}
else if(adapterType == ILazyLoader.class) {
- if(node.isFile()) return null;
return new FSTreeNodeLoader(node);
}
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeLoader.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeLoader.java
index 229e27bfc..b3472921b 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeLoader.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/FSTreeNodeLoader.java
@@ -63,4 +63,13 @@ public class FSTreeNodeLoader implements ILazyLoader {
throw new InvocationTargetException(e);
}
}
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.tcf.te.ui.interfaces.ILazyLoader#isLeaf()
+ */
+ @Override
+ public boolean isLeaf() {
+ return node.isFile();
+ }
}

Back to the top