Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Get all nodes of a given grammar construct type
Get all nodes of a given grammar construct type [message #938060] Tue, 09 October 2012 14:09 Go to next message
Quentin Boucher is currently offline Quentin Boucher
Messages: 27
Registered: July 2012
Junior Member
Hello!

I was wondering if it was feasible to get all nodes of the model which have a given grammar type? Let say we have a "Node" grammar element and I want to get all Nodes in my model. Is it possible?

Thank you and sorry if the question seems stupod.
Re: Get all nodes of a given grammar construct type [message #938144 is a reply to message #938060] Tue, 09 October 2012 15:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6388
Registered: July 2009
Senior Member
Ecoreutil2.getallcontentsoftype might be helpful

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Get all nodes of a given grammar construct type [message #938918 is a reply to message #938144] Wed, 10 October 2012 09:18 Go to previous message
Quentin Boucher is currently offline Quentin Boucher
Messages: 27
Registered: July 2012
Junior Member
Indeed it helps!

Thank you
Previous Topic:How to customize hover for imported elements ?
Next Topic:Xtext Checks, Markers and Quick Fixes
Goto Forum:
  


Current Time: Sat Oct 25 07:57:26 GMT 2014

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

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