Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Can I implement my own TexoResourceManger
Can I implement my own TexoResourceManger [message #809116] Tue, 28 February 2012 13:52 Go to next message
Oliver Zhou is currently offline Oliver ZhouFriend
Messages: 41
Registered: February 2012
Member
Hi Author,

Currently ArtifactGenerator will call TexoResourceManager to retrieve all templates, it's not very flexible.
We have a requirement that we need override texo template with our own, but we don't want to copy these templates to every project that uses Texo to generate code.

Is it possible to implement our own TexoResourceManager for use with ArtifactGenerator?

Beset wishes,
Oliver
Re: Can I implement my own TexoResourceManger [message #809234 is a reply to message #809116] Tue, 28 February 2012 16:13 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Oliver,
You mean that the TexoResourceManager should be settable in the ArtifactGenerator, that would be enough for you?

gr. Martin

On 02/28/2012 02:52 PM, Oliver Zhou wrote:
> Hi Author,
>
> Currently ArtifactGenerator will call TexoResourceManager to retrieve all templates, it's not very flexible.
> We have a requirement that we need override texo template with our own, but we don't want to copy these templates to
> every project that uses Texo to generate code.
>
> Is it possible to implement our own TexoResourceManager for use with ArtifactGenerator?
>
> Beset wishes,
> Oliver


--

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: Can I implement my own TexoResourceManger [message #835671 is a reply to message #809234] Tue, 03 April 2012 14:27 Go to previous messageGo to next message
Oliver Zhou is currently offline Oliver ZhouFriend
Messages: 41
Registered: February 2012
Member
Hi Martin,

Sorry for late response.
That's exactly what I mean.
Since we use Texo as our code generator in a XText project, we need to override the code template by our owns.
We will call ArtifactGenerator in our code but provide our own code template instead of the default ones.
Re: Can I implement my own TexoResourceManger [message #836711 is a reply to message #835671] Wed, 04 April 2012 20:32 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Oliver,
I published a new build which should make this possible. Let me know if it doesn't work for you somehow.

gr. Martin

On 04/03/2012 04:27 PM, Oliver Zhou wrote:
> Hi Martin,
>
> Sorry for late response.
> That's exactly what I mean.
> Since we use Texo as our code generator in a XText project, we need to override the code template by our owns.
> We will call ArtifactGenerator in our code but provide our own code template instead of the default ones.
>


--

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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Can I implement my own TexoResourceManger [message #836972 is a reply to message #836711] Thu, 05 April 2012 05:28 Go to previous message
Oliver Zhou is currently offline Oliver ZhouFriend
Messages: 41
Registered: February 2012
Member
Hi Martin,

It works pretty well, thanks for quick response.
Previous Topic:Which one is better in between Eclipse building and Eclipse Branding
Next Topic:[TEXO] Touch ModelPackage
Goto Forum:
  


Current Time: Fri Apr 26 20:35:15 GMT 2024

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

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

Back to the top