Skip to main content



      Home
Home » Modeling » EMF » JET settings bug ?
JET settings bug ? [message #408397] Tue, 10 April 2007 13:05 Go to next message
Eclipse UserFriend
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 #408400 is a reply to message #408397] Tue, 10 April 2007 13:33 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------050901040308030905090106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

St
Re: JET settings bug ? [message #408401 is a reply to message #408400] Tue, 10 April 2007 13:49 Go to previous messageGo to next message
Eclipse UserFriend
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.
>>
>

--
Re: JET settings bug ? [message #408402 is a reply to message #408401] Tue, 10 April 2007 13:57 Go to previous message
Eclipse UserFriend
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.
>>>
>>
>

--
Previous Topic:.genmodel that opened in 3.3M4 fails to open in 3.3M5
Next Topic:XML structure validation in EMF
Goto Forum:
  


Current Time: Wed Oct 29 13:15:40 EDT 2025

Powered by FUDForum. Page generated in 0.07218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top