Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » how to access .gmfgen root node?
how to access .gmfgen root node? [message #514709] Tue, 16 February 2010 07:23 Go to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
hi

just a short question. i am currently playing around with eol and the FixGMFGen.eol file trying to modify the .gmfgen model.
while i figured out how to access nodes further inside the model, i somehow fail to access the root node (GenEditorGenerator).
can someone please give me a hint?
thanks

marco
Re: how to access .gmfgen root node? [message #514713 is a reply to message #514709] Tue, 16 February 2010 07:32 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

I'm able to get hold of this using the following code:

var root = GmfGen!GenEditorGenerator.all.first();
root.println();

Cheers,
Dimitris

Marco.Kranz@fokus.fraunhofer.de wrote:
> hi
>
> just a short question. i am currently playing around with eol and the
> FixGMFGen.eol file trying to modify the .gmfgen model.
> while i figured out how to access nodes further inside the model, i
> somehow fail to access the root node (GenEditorGenerator).
> can someone please give me a hint?
> thanks
>
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: how to access .gmfgen root node? [message #514746 is a reply to message #514713] Tue, 16 February 2010 09:25 Go to previous messageGo to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
ah nice, that worked.

before i tried

var root = GmfGen!GenEditorGenerator.all.selectOne(r|r.modelID = "somevalue");

but for some reason it didn't work.
tried it again, now it works...

whatever, thanks dimitris.

Re: how to access .gmfgen root node? [message #586354 is a reply to message #514713] Tue, 16 February 2010 09:25 Go to previous message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
ah nice, that worked.

before i tried

var root = GmfGen!GenEditorGenerator.all.selectOne(r|r.modelID = "somevalue");

but for some reason it didn't work.
tried it again, now it works...

whatever, thanks dimitris.
Previous Topic:[EUGENIA] Questions about examples.friends
Next Topic:Problem with euGENia
Goto Forum:
  


Current Time: Fri Aug 29 04:09:01 EDT 2014

Powered by FUDForum. Page generated in 0.03658 seconds