Summary: | Double click after { does not always select the right block of code. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eduardo Pereira <eduardo_pereira> |
Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | hudsonr, n.a.edgar, toomim |
Version: | 2.0 | ||
Target Milestone: | 2.1 RC2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Eduardo Pereira
2002-05-22 11:56:35 EDT
*** Bug 16952 has been marked as a duplicate of this bug. *** Related to #9503 and #9151. *** Bug 23089 has been marked as a duplicate of this bug. *** Can this be considered for 2.1? Thanks I hope this does get changed. BTW, "Highlight matching brackets" has the same problem and needs to use the same algorithm. Build > 20030304 for those who cannot stand having a cursor right or left of a '{' :-) This does not work in RC2. RC2 behavior is: int a = 1(2int3)4long; double-clicking at: 1 - does nothing, working 2 - selects text, working 3 - does nothing, broken 4 - selects text, broken, should do nothing. Also: String foo = 1"2foo3"4; double-clicking should only be supported at 2&3, but 1 also works. As you have seen the current behavior is that selection is only triggered when the cursor/mouse event is/happens right of a bracket. Thus, when being inside nested brackets you always know for which one the matching bracket is computed and highlighted. This resolves the ambiguities you initially complained about. |