commit | 57f89e200421a8b47f2600c518a55dfcba05b393 | [log] [tgz] |
---|---|---|
author | cbridgha <cbridgha> | Wed May 18 21:16:15 2005 +0000 |
committer | cbridgha <cbridgha> | Wed May 18 21:16:15 2005 +0000 |
tree | 913551ae79766a2dba35383ff667bfc91f2642ec | |
parent | 09e8ce2803e6be339f775adc2da2016a7e887cff [diff] |
[nobug] Changed getParent
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java index 940a2f0..565349a 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java
@@ -172,7 +172,7 @@ } public IVirtualContainer getParent() { - if(getRuntimePath().segmentCount() > 0) + if(getRuntimePath().segmentCount() > 1) return new VirtualFolder(getComponentHandle(), getRuntimePath().removeLastSegments(1)); return getComponent(); }