commit | 683c290497ad644c091b89729456acb55026f4b1 | [log] [tgz] |
---|---|---|
author | cbridgha <cbridgha> | Thu Nov 08 02:55:13 2007 +0000 |
committer | cbridgha <cbridgha> | Thu Nov 08 02:55:13 2007 +0000 |
tree | 59a980ae11d41120109ec94c35ee36edb5165f18 | |
parent | e8db56bf6de5722add737cb0feb5ddef44e55a38 [diff] |
[203159] Model sync
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 19e3503..15ed4bb 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
@@ -124,6 +124,8 @@ IPath searchPath = null; do { searchPath = (searchPath == null) ? getRuntimePath() : searchPath.removeLastSegments(1); + if (searchPath.isAbsolute()) + searchPath = searchPath.makeRelative(); componentResources = root.findModuleResources(searchPath, ResourceTreeNode.CREATE_NONE); estimatedPaths = findBestMatches(componentResources); } while (estimatedPaths.length==0 && canSearchContinue(componentResources, searchPath));