Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Is it possible customize EMF Tree Editor programmatically ?
Is it possible customize EMF Tree Editor programmatically ? [message #515262] Thu, 18 February 2010 10:03 Go to next message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
Hello!

I'm developing EMF editor and I have customized it manually, to do it
I have to modify over 30 java files, now I would want to do this customization
programmatically using only a file.

For GMF, I use EuGENia to customize editors, for EMF I know Epsilon Exeed but
It works with Reflective editors and I need to do it with Tree Editors and
I don't know any tool that let me this.

Does Anyone know a tool to customize EMF tree editor such as EuGENia for GMF?

Thanks, Regards
Álvaro
Re: Is it possible customize EMF Tree Editor programmatically ? [message #515264 is a reply to message #515262] Thu, 18 February 2010 10:10 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Alvaro,

I'm not aware of any such tool, but I think it'd be straightforward to
follow an approach similar to what EuGENia does (i.e define some
task-specific @emf.xxx annotations) and then use an M2T language (e.g.
EGL - http://www.eclipse.org/gmt/epsilon/doc/egl/) to generate the
custom code.

Cheers,
Dimitris

ajimenezr wrote:
> Hello!
>
> I'm developing EMF editor and I have customized it manually, to do it I
> have to modify over 30 java files, now I would want to do this
> customization programmatically using only a file.
>
> For GMF, I use EuGENia to customize editors, for EMF I know Epsilon
> Exeed but It works with Reflective editors and I need to do it with Tree
> Editors and
> I don't know any tool that let me this.
>
> Does Anyone know a tool to customize EMF tree editor such as EuGENia for
> GMF?
>
> Thanks, Regards
> Á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 #515950 is a reply to message #515264] Mon, 22 February 2010 10:33 Go to previous messageGo to next message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
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
Re: Is it possible customize EMF Tree Editor programmatically ? [message #515984 is a reply to message #515950] Mon, 22 February 2010 11:52 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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 #586553 is a reply to message #515264] Mon, 22 February 2010 10:33 Go to previous message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
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
Re: Is it possible customize EMF Tree Editor programmatically ? [message #586608 is a reply to message #586553] Mon, 22 February 2010 11:52 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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
Previous Topic:Emfatic documentation ?
Next Topic:problem executing .eol with ant
Goto Forum:
  


Current Time: Wed Apr 24 16:59:32 GMT 2024

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

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

Back to the top