Skip to main content


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 12:29 Go to next message
chris is currently offline chrisFriend
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 14:47 Go to previous messageGo to next message
chris is currently offline chrisFriend
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 06:39 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
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
Re: XPand template not working after upgrading to Helios [message #629455 is a reply to message #542280] Tue, 28 September 2010 11:06 Go to previous message
Laura Hernández is currently offline Laura HernándezFriend
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 Apr 25 15:11:33 GMT 2024

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

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

Back to the top