Home » Modeling » Epsilon » Is it possible customize EMF Tree Editor programmatically ?
| | |
Re: Is it possible customize EMF Tree Editor programmatically ? [message #515984 is a reply to message #515950] |
Mon, 22 February 2010 11:52 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Alvaro,
To store the output in a file, in the launch configuration you can
select the "Generate text to a file" option.
Cheers,
Dimitris
ajimenezr wrote:
> Hi Dimitris,
>
> I'll develop your idea, so now I'm practising with EGL.
> I want launch an EGL file which its target is the console but I want to
> generate the same code to a file(output.txt).
>
> I have seen examples that using severals EGL files to write to a file, eg.:
> driver.egl:
> [%
> for (i in Sequence{1..10}) {
> var delegate : Template;
> -- Pass parameters to the template
> delegate := TemplateFactory.load('delegate.egl');
> delegate.populate('foo', i);
> delegate.store(i+'.txt', true);
> }
> %]
>
> delegate.egl:
> [%=foo%]
>
> but I would like do it using only one EGL file. It is possible?
>
> Thanks for your help,
> Álvaro
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
| |
Re: Is it possible customize EMF Tree Editor programmatically ? [message #586608 is a reply to message #586553] |
Mon, 22 February 2010 11:52 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Alvaro,
To store the output in a file, in the launch configuration you can
select the "Generate text to a file" option.
Cheers,
Dimitris
ajimenezr wrote:
> Hi Dimitris,
>
> I'll develop your idea, so now I'm practising with EGL.
> I want launch an EGL file which its target is the console but I want to
> generate the same code to a file(output.txt).
>
> I have seen examples that using severals EGL files to write to a file, eg.:
> driver.egl:
> [%
> for (i in Sequence{1..10}) {
> var delegate : Template;
> -- Pass parameters to the template
> delegate := TemplateFactory.load('delegate.egl');
> delegate.populate('foo', i);
> delegate.store(i+'.txt', true);
> }
> %]
>
> delegate.egl:
> [%=foo%]
>
> but I would like do it using only one EGL file. It is possible?
>
> Thanks for your help,
> Álvaro
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
|
Goto Forum:
Current Time: Wed Sep 25 17:21:01 GMT 2024
Powered by FUDForum. Page generated in 0.24393 seconds
|