| Summary: | [NodeTreeIterator] support other node than root for iteration origin. | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | lieven.lemiengre |
| Version: | 2.0.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
If you have A you could filter over the leafiterator |
context: org.eclipse.xtext.nodemodel.util.NodeTreeIterator Use case: In a tree like A / \ / \ B C / \ / \ D E F G I'd like to be able to iterate from E to G. I would expect the iterator to visit F on the way. Currently, this is not possible, since the TreeIterator will never leave its root node and the root node is also implicitly the iterators start node. I'd like to be able to specify A as root (if the iterator really needs a root) and G as the start node.