Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » xpand and aspects
xpand and aspects [message #895523] Fri, 13 July 2012 11:26 Go to next message
Matthias N is currently offline Matthias N
Messages: 65
Registered: June 2012
Member
Hi,
as much I know aspect oriented programming is supported by xpand.

I have a GMF project, and when I customize templates, I put them into a folder "templates/aspects/".

The aspects however must follow the same directory structure as the original template, e.g.

the original template:
org.eclipse.gmf.codegen/templates/xpt/editor/Editor.xpt

the aspect:
<my project>/templates/aspects/xpt/editor/Editor.xpt

Therefore, I can only change the Editor.xpt template. So, if my changes concern several templates, I have to create an aspect template for each of those.

What I want to have is an aspect, e.g. color.xpt which contains all template changes within this one file. Example:

color.xpt
<<Around template/xx/yy/ ...>>

<<EndAround>>

<<Around template/zz/aa// ...>>

<<EndAround>>

Is this possible ?

[Updated on: Fri, 13 July 2012 11:26]

Report message to a moderator

Re: xpand and aspects [message #895596 is a reply to message #895523] Fri, 13 July 2012 17:32 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6385
Registered: July 2009
Senior Member
Hi,

maybe you should ask this in the GMF newsgroup since afaik GMF Xpand is
a Fork to M2T Xpand

~Christian

On 2012-07-13 11:26:04 +0000, Matthias N said:

> Hi,
> as much I know aspect oriented programming is supported by xpand.
>
> I have a GMF project, and when I customize templates, I put them into a
> folder "templates/aspects/".
> The aspects however must follow the same directory structure as the
> original template, e.g.
>
> the original template:
> org.eclipse.gmf.codegen/templates/xpt/editor/Editor.xpt
>
> the aspect:
> <my project>/templates/aspects/xpt/editor/Editor.xpt
>
> Therefore, I can only change the Editor.xpt template. So, if my changes
> concern several templates, I have to create an aspect template for each
> of those.
>
> What I want to have is an aspect, e.g. color.xpt which contains all
> template changes within this one file. Example:
>
> color.xpt<<Around template/xx/yy/ ...>>
>
> <<EndAround>>
>
> <<Around template/zz/aa// ...>>
>
> <<EndAround>>
>
> Is this possible ?


--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Previous Topic:[Acceleo] problems with static UML profile
Next Topic:[Acceleo] Collection whose elements are all different
Goto Forum:
  


Current Time: Fri Oct 24 07:52:03 GMT 2014

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

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