Skip to main content


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 12:23 Go to next message
m kranz is currently offline m kranzFriend
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 12:32 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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 14:25 Go to previous messageGo to next message
m kranz is currently offline m kranzFriend
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 14:25 Go to previous message
m kranz is currently offline m kranzFriend
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: Sat Apr 20 02:23:15 GMT 2024

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

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

Back to the top