Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Exchanging templates for generation from GenModel
Exchanging templates for generation from GenModel [message #425210] Wed, 19 November 2008 14:54 Go to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi,

I need to tweak model code generation from a GenModel a little. In
general, it will stay the same, but some method implementations will
need to be enhanced a bit. From the EMF book I learn that GenModel's
templateDirectory property allows me to specify a directory with
templates to override the original templates. However, the path
specified must be relative to the workspace. Is there also a possibility
where the template could reside in an installed plugin rather than in
the workspace itself?

Many thanks,

Steffen

--
Dr. rer. nat. Steffen Zschaler
Senior Research Associate

Lancaster University
Lancaster, United Kingdom

Email szschaler@acm.org
WWW http://www.steffen-zschaler.de/

--

Consider submitting to QoSA 2009, the 5th International Conference on
the Quality of Software-Architectures.
http://qosa.ipd.uka.de/

Consider submitting to MiSE 2009, the 3rd International Workshop on
Models in Software Engineering
http://wikiserver.sse.cs.tu-bs.de/mise09
Re: Exchanging templates for generation from GenModel [message #425211 is a reply to message #425210] Wed, 19 November 2008 16:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30881
Registered: July 2009
Senior Member
Steffen,

Comments below.

Steffen Zschaler wrote:
> Hi,
>
> I need to tweak model code generation from a GenModel a little. In
> general, it will stay the same, but some method implementations will
> need to be enhanced a bit. From the EMF book I learn that GenModel's
> templateDirectory property allows me to specify a directory with
> templates to override the original templates. However, the path
> specified must be relative to the workspace. Is there also a
> possibility where the template could reside in an installed plugin
> rather than in the workspace itself?
I think platform:/plugin/<plugin-id>/<relative-path-in-plugin> will do
the trick.
>
> Many thanks,
>
> Steffen
>
Re: Exchanging templates for generation from GenModel [message #425214 is a reply to message #425211] Wed, 19 November 2008 17:26 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi,

Thanks for this idea. However, I've already tried it and it seems not to
work.

Regards,

Steffen

Ed Merks wrote:
> Steffen,
>
> Comments below.
>
> Steffen Zschaler wrote:
>> Hi,
>>
>> I need to tweak model code generation from a GenModel a little. In
>> general, it will stay the same, but some method implementations will
>> need to be enhanced a bit. From the EMF book I learn that GenModel's
>> templateDirectory property allows me to specify a directory with
>> templates to override the original templates. However, the path
>> specified must be relative to the workspace. Is there also a
>> possibility where the template could reside in an installed plugin
>> rather than in the workspace itself?
> I think platform:/plugin/<plugin-id>/<relative-path-in-plugin> will do
> the trick.
>>
>> Many thanks,
>>
>> Steffen
>>

--
Dr. rer. nat. Steffen Zschaler
Senior Research Associate

Lancaster University
Lancaster, United Kingdom

Email szschaler@acm.org
WWW http://www.steffen-zschaler.de/

--

Consider submitting to QoSA 2009, the 5th International Conference on
the Quality of Software-Architectures.
http://qosa.ipd.uka.de/

Consider submitting to MiSE 2009, the 3rd International Workshop on
Models in Software Engineering
http://wikiserver.sse.cs.tu-bs.de/mise09
Previous Topic:[Teneo] jpox queries
Next Topic:Retrieve EditingModel from EObject
Goto Forum:
  


Current Time: Mon Feb 17 06:58:27 GMT 2020

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

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

Back to the top