Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-04-15 15:46:39 +0000
committerashatalin2009-04-15 15:46:39 +0000
commit34c5fa55d9487dcf1f85f523d0b30c5a4e620370 (patch)
treea58ef2f08c6a8da3e0bacf05388eea0658045f74
parentddf80a78e2d45afe007b80079014348b23d61f02 (diff)
downloadorg.eclipse.gmf-tooling-20090415-1925.tar.gz
org.eclipse.gmf-tooling-20090415-1925.tar.xz
org.eclipse.gmf-tooling-20090415-1925.zip
Using plain unresolved URI to point to the custom templates folder since it is important for loading proper URI mapping settings by QVT.v20090415-1925
Like: env.getKernel().getMetamodelRegistry(env.getFile()); In this line platform:/resource/.. should be returned by env.getFile()
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java
index 3ce11df54..92935df01 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java
@@ -93,7 +93,7 @@ public class CodegenEmitters {
if (templateDirectory != null) {
URI templatesURI = templateDirectory.indexOf(":") == -1 ? URI.createPlatformResourceURI(templateDirectory, true) : URI.createURI(templateDirectory); //$NON-NLS-1$
try {
- return new URL(CommonPlugin.resolve(templatesURI).toString());
+ return new URL(templatesURI.toString());
} catch (MalformedURLException e) {
Platform.getLog(getTemplatesBundle()).log(new Status(IStatus.ERROR, getTemplatesBundle().getSymbolicName(), 0, "Incorrecct dynamic templates location", e)); //$NON-NLS-1$
}

Back to the top