Managing many projects in development phase [message #9586] |
Wed, 28 January 2009 14:11  |
Eclipse User |
|
|
|
Hi,
Currently, I'm developping a egl program in a project, and test its
generation in the same project.
I'm using the Run command to run the program.
What do I have to do to be able to generate files in arbitrary projects of
the workspace ?
Thanks !
|
|
|
|
Re: Managing many projects in development phase [message #9632 is a reply to message #9608] |
Wed, 28 January 2009 14:16  |
Eclipse User |
|
|
|
Hi Stephane,
I was just about to suggest the same but you beat me to it :)
Cheers,
Dimitris
Stéphane wrote:
> I've been able to do this that way:
>
> for( class in Class.allInstances ){
> var t : Template := TemplateFactory.load('class.egl');
> t.populate('class', class);
> t.process();
> t.store('../../../../mytestproj/src-gen/' + class.getGenFileName());
> }
>
> Very cool, so I can pass it as argument =)
>
> Thanks ^^
|
|
|
Re: Managing many projects in development phase [message #564186 is a reply to message #9586] |
Wed, 28 January 2009 14:14  |
Eclipse User |
|
|
|
I've been able to do this that way:
for( class in Class.allInstances ){
var t : Template := TemplateFactory.load('class.egl');
t.populate('class', class);
t.process();
t.store('../../../../mytestproj/src-gen/' + class.getGenFileName());
}
Very cool, so I can pass it as argument =)
Thanks ^^
|
|
|
Re: Managing many projects in development phase [message #564206 is a reply to message #9608] |
Wed, 28 January 2009 14:16  |
Eclipse User |
|
|
|
Hi Stephane,
I was just about to suggest the same but you beat me to it :)
Cheers,
Dimitris
Stéphane wrote:
> I've been able to do this that way:
>
> for( class in Class.allInstances ){
> var t : Template := TemplateFactory.load('class.egl');
> t.populate('class', class);
> t.process();
> t.store('../../../../mytestproj/src-gen/' + class.getGenFileName());
> }
>
> Very cool, so I can pass it as argument =)
>
> Thanks ^^
|
|
|
Powered by
FUDForum. Page generated in 0.06686 seconds