Summary: | [navigation] Outline should highlight member on the current line | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nick Edgar <n.a.edgar> |
Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, hudsonr |
Version: | 3.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: | |||
Bug Depends on: | 38510 | ||
Bug Blocks: |
Description
Nick Edgar
2003-07-16 14:42:14 EDT
Where is you mental model here: char c;<cursor>char b; ? There might also be spaces and newlines between char c; and char b; - should we take the minimal distance? Let's say you have import x.y.z; <newline> <caret> <newline> <newline> plublic class Test Would you expect that the import gets selected? For multiple declarations on the same line, I think it could either look forward or backward. That is, either extend the range of c to the start of b, or extend range of b to the end of c. I think the "nearest" heuristic would be confusing. For package declarations, imports and secondary types, if you're within range of the declaraiton (or on the same line), then I think it should select the primary type. If you find the element at (offset-1), and it is contained by the element at 'offset', then the heuristic could favor the nested (i.e. smaller, more specific) element. The mental model being that the user considers the caret to be between to locations, and not *on* a location. |