| 
| JET settings bug ? [message #408397] | Tue, 10 April 2007 13:05  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 I am writing a code generator based on the one provided by EMF in the
 same manner than UML2 codegen does.
 
 Indeed, I have some jet templates located under a template folder.
 In my Class.javajet, I included Class.javajet from EMF codegen templates.
 
 To be able to compile my templates, I have to set the "template
 containers" variable in JET nature settings.
 I try to enter something like that:
 templates;@/platform:plugin/org.eclipse.emf.codegen.ecore/te mplates
 
 But it raises an error : "no relative path uri or no hiearchical uri" (I
 have no longer the right error message in mind...)
 
 My workaround was to import the emf.codegen.ecore plugin and modify the
 variable like that:
 templates;@/org.eclipse.emf.codegen.ecore/templates
 
 Does anyone meet the same problem ?
 Is it mandatory to import the emf codegen plugin into the workspace to
 access provided templates by EMF?
 
 I'm a bit surprise that platform uri scheme is not supported.
 Stephane.
 
 --
 |  |  |  | 
|  | 
|  | 
| 
| Re: JET settings bug ? [message #408402 is a reply to message #408401] | Tue, 10 April 2007 13:57  |  | 
| Eclipse User  |  |  |  |  | Oups, I forgot one "/" That one fails:
 templates;@/platform:/plugin/org.eclipse.emf.codegen.ecore/t emplates
 
 Stephane.
 
 Stéphane Fournier wrote:
 > Thank you Ed !
 > Those solutions work :
 >  templates;@platform:/plugin/org.eclipse.emf.codegen.ecore/te mplates
 >  templates;@platform:plugin/org.eclipse.emf.codegen.ecore/tem plates
 >
 > That one fails:
 >  templates;@/platform:plugin/org.eclipse.emf.codegen.ecore/te mplates
 >
 > Stephane.
 >
 >
 > Ed Merks wrote:
 >> Stéphane,
 >>
 >> Would this work better:
 >>
 >>      templates;@platform:/plugin/org.eclipse.emf.codegen.ecore/te mplates
 >>
 >> I.e., not putting a "/" in front of the platform?  (Or at least
 >> including the / after the "platform:".)
 >>
 >> I'll look more closely if that doesn't do the trick...
 >>
 >>
 >> Stéphane Fournier wrote:
 >>> Hi,
 >>>
 >>> I am writing a code generator based on the one provided by EMF in the
 >>> same manner than UML2 codegen does.
 >>>
 >>> Indeed, I have some jet templates located under a template folder.
 >>> In my Class.javajet, I included Class.javajet from EMF codegen
 >>> templates.
 >>>
 >>> To be able to compile my templates, I have to set the "template
 >>> containers" variable in JET nature settings.
 >>> I try to enter something like that:
 >>>  templates;@/platform:plugin/org.eclipse.emf.codegen.ecore/te mplates
 >>>
 >>> But it raises an error : "no relative path uri or no hiearchical uri"
 >>> (I  have no longer the right error message in mind...)
 >>>
 >>> My workaround was to import the emf.codegen.ecore plugin and modify
 >>> the variable like that:
 >>> templates;@/org.eclipse.emf.codegen.ecore/templates
 >>>
 >>> Does anyone meet the same problem ?
 >>> Is it mandatory to import the emf codegen plugin into the workspace
 >>> to access provided templates by EMF?
 >>>
 >>> I'm a bit surprise that platform uri scheme is not supported.
 >>> Stephane.
 >>>
 >>
 >
 
 --
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.71950 seconds