Skip to main content



      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 10:09 Go to next message
Eclipse UserFriend
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 11:31 Go to previous messageGo to next message
Eclipse UserFriend
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 05:18 Go to previous message
Eclipse UserFriend
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 Jul 04 23:06:54 EDT 2025

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

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

Back to the top