Skip to main content



      Home
Home » Modeling » Epsilon » Managing many projects in development phase
Managing many projects in development phase [message #9586] Wed, 28 January 2009 14:11 Go to next message
Eclipse UserFriend
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 #9608 is a reply to message #9586] Wed, 28 January 2009 14:14 Go to previous messageGo to next message
Eclipse UserFriend
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 #9632 is a reply to message #9608] Wed, 28 January 2009 14:16 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 ^^
Previous Topic:Managing many projects in development phase
Next Topic:Ant and epsilon.loadModel
Goto Forum:
  


Current Time: Mon Jul 14 07:38:18 EDT 2025

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

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

Back to the top