Skip to main content


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 BoucherFriend
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 DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.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 BoucherFriend
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: Fri Apr 26 11:11:08 GMT 2024

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

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

Back to the top