GMF template aspects [message #895721] |
Sun, 15 July 2012 07:11  |
Eclipse User |
|
|
|
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 ?
|
|
|
|
|
Re: GMF template aspects [message #896187 is a reply to message #895938] |
Tue, 17 July 2012 10:08  |
Eclipse User |
|
|
|
Hi,
a thing that would work is to have all your customization in one template and call this from various other aspect templates. However, I could not see additional value from this.
Ralph
[Updated on: Tue, 17 July 2012 10:08] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03189 seconds