Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-11-02 17:34:00 +0000
committeratikhomirov2006-11-02 17:34:00 +0000
commit8c52e1fba8f885e81a3cf60b691cf5c479b6d5e7 (patch)
tree91b73abe12bf3474a0140fe47c53b49e54e47f39
parent497a03b31db31436f2121131672c219b4d48ea4c (diff)
downloadorg.eclipse.gmf-tooling-8c52e1fba8f885e81a3cf60b691cf5c479b6d5e7.tar.gz
org.eclipse.gmf-tooling-8c52e1fba8f885e81a3cf60b691cf5c479b6d5e7.tar.xz
org.eclipse.gmf-tooling-8c52e1fba8f885e81a3cf60b691cf5c479b6d5e7.zip
workaround to deal with non-full paths
-rw-r--r--plugins/org.eclipse.gmf.xpand/src/org/eclipse/gmf/internal/xpand/build/WorkspaceResourceManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.xpand/src/org/eclipse/gmf/internal/xpand/build/WorkspaceResourceManager.java b/plugins/org.eclipse.gmf.xpand/src/org/eclipse/gmf/internal/xpand/build/WorkspaceResourceManager.java
index c9fbf13d9..4b8809679 100644
--- a/plugins/org.eclipse.gmf.xpand/src/org/eclipse/gmf/internal/xpand/build/WorkspaceResourceManager.java
+++ b/plugins/org.eclipse.gmf.xpand/src/org/eclipse/gmf/internal/xpand/build/WorkspaceResourceManager.java
@@ -80,6 +80,10 @@ public class WorkspaceResourceManager extends ResourceManagerImpl {
protected Reader resolve(String fqn, String ext) throws IOException {
IPath p = new Path(fqn.replaceAll(SyntaxConstants.NS_DELIM, "/")).addFileExtension(ext);
IResource r = contextProject.findMember(p);
+ if (r == null) {
+ // XXX confiugre manager with path defined as preference/resource variable
+ r = contextProject.findMember(new Path("templates/").append(p));
+ }
if (false == r instanceof IFile) {
throw new FileNotFoundException(p.toString());
}

Back to the top