| Summary: | Brace and Parenthesis double-click matching is ambiguous | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Randy Hudson <hudsonr> |
| Component: | Text | Assignee: | Kai-Uwe Maetzel <kai-uwe_maetzel> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dean.t.roberts |
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
reconsider after 2.0 Reopening for 2.1 consideration *** Bug 20558 has been marked as a duplicate of this bug. *** |
<DOUBLE-CLICK>(ArrayList) will cause ArrayList to get selected. (<DOUBLE-CLICK>ArrayList) will also cause ArrayList to get selected. this means that: (<DOUBLE_CLICK>(ArrayList)aList).size() is *ambiguous*. Should it match to the parenthesis on the left or right of the double-click? Also: (Foo)<DOUBLE_CLICK>(Bar) is ambiguous. I think that the ambiguous cases should be recognized, and the ties broken by choosing the outer-most emcompsasing brace/paren. Thus: (<DOUBLE_CLICK>(ArrayList)aList).size() would cause "(ArrayList)aList" to get selected. BTW, the same ambiguity can be applied to the highlight rectangle.