| Summary: | [Outline] Synchronization in text editor only upon selection of "ID" | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Johan Wannheden <johan.wannheden> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow, stephane |
| Version: | unspecified | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Johan Wannheden
The 1.0.1 implementation is a trade-off between performance in big models and API backward compatibility. Instead of traversing the whole tree (and thereby instantiating all nodes eagerly) to find the matching node for an text selection, we use the text region returned by the ILocationInFileProvider. Note that this is the text region that should be selected when linking in the other direction, i.e. from a selected node to the text. In the current HEAD, the outline and the ILocationInFileProvider has been completely reworked. An IOutlineNode can now have two regions, a significant one (e.g. the ID) and a complete one (the whole text representing). To enable this, we had to break 1.x API, that's why it is not possible to transfer this solution to the 1.x branch. So the resolution is: Fixed in HEAD. Do we need to fix this one for 1.0.2 (which we do not plan to have) or is it possible to customize the 1.0.1 algorithm to restore the 1.0.0 behaviour? See comment #2: Is this an issue for 1.0.2, too? (In reply to comment #3) > See comment #2: > Is this an issue for 1.0.2, too? I'd say that performance in big models is more important than the "synchronize button" functionality. Now if we can have both, and within 1.0.2 too... :-) Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |