Author: scabanovich
Date: 2011-10-11 16:41:00 -0400 (Tue, 11 Oct 2011)
New Revision: 35558
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarSystemImpl.java
Log:
JBIDE-9884
https://issues.jboss.org/browse/JBIDE-9884
Implemented hasChildren() in JarSystemImpl accordingly to getChildren().
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarSystemImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarSystemImpl.java 2011-10-11
20:31:55 UTC (rev 35557)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarSystemImpl.java 2011-10-11
20:41:00 UTC (rev 35558)
@@ -10,8 +10,6 @@
******************************************************************************/
package org.jboss.tools.common.model.filesystems.impl;
-import java.util.Set;
-
import org.jboss.tools.common.model.*;
import org.jboss.tools.common.model.util.*;
@@ -67,6 +65,11 @@
return (main == this || main == null) ? super.getChildren() : main.getChildren();
}
+ public boolean hasChildren() {
+ JarSystemImpl main = getJarAccess().getMain();
+ return (main == this || main == null) ? super.hasChildren() : main.hasChildren();
+ }
+
public XModelObject getChildByPathPart(String pathpart) {
JarSystemImpl main = getJarAccess().getMain();
return (main == this || main == null) ? super.getChildByPathPart(pathpart) :
main.getChildByPathPart(pathpart);