xpand and aspects [message #895523] |
Fri, 13 July 2012 11:26 |
Matthias N Messages: 66 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 |
|
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
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.04412 seconds