Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » IOutlineNode.getChildren cause StackOverflowError
IOutlineNode.getChildren cause StackOverflowError [message #709812] Thu, 04 August 2011 10:31 Go to next message
raffaello  is currently offline raffaello Friend
Messages: 5
Registered: June 2011
Junior Member
Hi

I recently moved to Indigo and Xtext 2.0. In my OutlineTreeProvider I re-implemented _createNode(IOutlineNode parentNode, EObject modelElement) for some of my nodes.

If i call the method getChildren() on the parentNode and this one has no children a StackOverflowError raises.
If i call hasChildren() on the parentNode, It always return true even if the node does not have any children.
I attached a text file with the error stack trace.

Am i doing something wrong?

By the way, which is the right way to group nodes in the outline view? Confused

Many thanks!
Raffaello
Re: IOutlineNode.getChildren cause StackOverflowError [message #710655 is a reply to message #709812] Fri, 05 August 2011 09:06 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

if I am correct getChildren and hasChildren are not for you to *call* but for you to *implement. The framework will call these methods in order to decide whether there is a subtree and for retrieving the elements of the subtree.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Previous Topic:New Xtext Editor: Google's protobuf-dt
Next Topic:Compile xtend2 files to Java code without eclipse
Goto Forum:
  


Current Time: Sat Apr 27 03:55:12 GMT 2024

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

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

Back to the top