[Acceleo] Overriding templates (provided by an installed plugin) in a dev project [message #666743] |
Fri, 22 April 2011 02:39  |
Eclipse User |
|
|
|
Hi,
I want to achieve the following:
- I provide templates through a plugin, this plugin makes it possible for people to right click on an ecore file and
generate some code. This plugin is installed inside eclipse.
- A user has a development project with a model (an ecore file), in a templates folder he/she overrides one of my
templates provided through the plugin installed in the IDE
- the user sets the extension point for dynamic overrides and adds the installed plugin as a dependency
What will happen when the user right clicks the model file and select the menu option I provide to generate code? I
mean, will Acceleo find the overriding template in the users development project?
Did I miss a setting which can be important, or is it fine as I describe it above?
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
Re: [Acceleo] Overriding templates (provided by an installed plugin) in a dev project [message #666774 is a reply to message #666749] |
Fri, 22 April 2011 08:27   |
Eclipse User |
|
|
|
Okay this won't work for me, is there another way I can override change the template import process of Acceleo? So that
I can read the templates from another place?
I mean my logic knows that there are templates located in a certain folder, can it force acceleo to import/read them
(and their emtl) files?
gr. Martin
On 04/22/2011 09:45 AM, Stephane Begaudeau wrote:
> Hi Martin,
>
> The overriding templates need to be in an installed plugin. The project being in the workspace, its extension points are
> not registered in the current Eclipse instance and thus are not accessible for your Acceleo generator deployed as a plugin.
>
> Stephane Begaudeau, Obeo
> --
> Twitter: http://twitter.com/#!/sbegaudeau
> Acceleo wiki: http://wiki.eclipse.org/Acceleo
> Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com/
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03922 seconds