Author: scabanovich
Date: 2007-07-26 04:49:02 -0400 (Thu, 26 Jul 2007)
New Revision: 2666
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/trees/AllResourcesTree.java
Log:
JBIDE-572
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/trees/AllResourcesTree.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/trees/AllResourcesTree.java 2007-07-26
08:38:36 UTC (rev 2665)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/trees/AllResourcesTree.java 2007-07-26
08:49:02 UTC (rev 2666)
@@ -40,6 +40,11 @@
public boolean hasChildren(XModelObject object) {
if(object == root) return true;
XFilteredTree tree = getSubTree(object.getModel());
+ if(tree != null) for (int i = 0; i < roots.length; i++) {
+ if(object == roots[i]) {
+ object = tree.getRoot();
+ }
+ }
return (tree != null) && tree.hasChildren(object);
}
Show replies by date