Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XPand template not working after upgrading to Helios
XPand template not working after upgrading to Helios [message #542280] Thu, 24 June 2010 08:29 Go to next message
chris is currently offline chris
Messages: 72
Registered: July 2009
Member
Hi,

I have GMF editors which I generate using dynamic templates. One of my
templates (the one for the manifest file) has code like this:


«AROUND manifest FOR gmfgen::GenPlugin-»
(...)
«IF name = "ABC"-»
de.upb.somePlugin,
«ENDIF-»


However, the generated manifest does not have an import of plugin
de.upb.simePlugin.

This used to work before I upgraded to Helios, but now it doesn't any
more for some reason. I'm using GMFTools to generate my editors, and in
the involved transformation of the gmfgen model, I make sure that the
name attribute has an appropriate value (I doublechecked the generated
..gmfgen model, and its name attribute indeed contains value "ABC").

Any idea what might be going on here?

Thanks in advance,
Chris
Re: XPand template not working after upgrading to Helios [message #542831 is a reply to message #542280] Sat, 26 June 2010 10:47 Go to previous messageGo to next message
chris is currently offline chris
Messages: 72
Registered: July 2009
Member
> I have GMF editors which I generate using dynamic templates. One of my
> templates (the one for the manifest file) has code like this:
>
>
> «AROUND manifest FOR gmfgen::GenPlugin-»
> (...)
> «IF name = "ABC"-»
> de.upb.somePlugin,
> «ENDIF-»
>
>
> However, the generated manifest does not have an import of plugin
> de.upb.simePlugin.
>
> This used to work before I upgraded to Helios, but now it doesn't any
> more for some reason. I'm using GMFTools to generate my editors, and in
> the involved transformation of the gmfgen model, I make sure that the
> name attribute has an appropriate value (I doublechecked the generated
> .gmfgen model, and its name attribute indeed contains value "ABC").

In case somebody runs into the same problem: replace " by '.

Cheers,
Chris
Re: XPand template not working after upgrading to Helios [message #542988 is a reply to message #542831] Mon, 28 June 2010 02:39 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1759
Registered: July 2009
Senior Member
This is related to GMF's modified version of Xpand, right?

Sven


chris schrieb:
>> I have GMF editors which I generate using dynamic templates. One of my
>> templates (the one for the manifest file) has code like this:
>>
>>
>> «AROUND manifest FOR gmfgen::GenPlugin-»
>> (...)
>> «IF name = "ABC"-»
>> de.upb.somePlugin,
>> «ENDIF-»
>>
>>
>> However, the generated manifest does not have an import of plugin
>> de.upb.simePlugin.
>>
>> This used to work before I upgraded to Helios, but now it doesn't any
>> more for some reason. I'm using GMFTools to generate my editors, and in
>> the involved transformation of the gmfgen model, I make sure that the
>> name attribute has an appropriate value (I doublechecked the generated
>> .gmfgen model, and its name attribute indeed contains value "ABC").
>
> In case somebody runs into the same problem: replace " by '.
>
> Cheers,
> Chris


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: XPand template not working after upgrading to Helios [message #629455 is a reply to message #542280] Tue, 28 September 2010 07:06 Go to previous message
Laura Hernández is currently offline Laura Hernández
Messages: 22
Registered: September 2009
Junior Member
Hi Chris,

did you solve your problem changing " by ' ?

I have the same problem, I get an error trying to generate the code with dynamic templates after upgrading to Helios version, but I don't use double quote in these templates.

This is the error I got:
Exception (org.eclipse.gmf.internal.xpand.util.ParserException, @aspects::impl::diagram::editparts::NodeEditPart
[unspecified location] (5) ; ">") while generating code


Any clue? Maybe a ">" symbol not recognized? this template was correct with the previous version.

Thanks!!

Laura.

Previous Topic:[Xpand] iteration over integer list
Next Topic:[Acceleo] Meta-model URI resolution query
Goto Forum:
  


Current Time: Thu Jul 31 11:49:51 EDT 2014

Powered by FUDForum. Page generated in 0.02918 seconds