Bug 16952

Summary: Brace and Parenthesis double-click matching is ambiguous
Product: [Eclipse Project] JDT Reporter: Randy Hudson <hudsonr>
Component: TextAssignee: 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:

Description Randy Hudson CLA 2002-05-22 14:27:35 EDT
<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.
Comment 1 Erich Gamma CLA 2002-06-09 18:10:50 EDT
reconsider after 2.0
Comment 2 Dirk Baeumer CLA 2002-07-24 05:42:45 EDT
Reopening for 2.1 consideration
Comment 3 Kai-Uwe Maetzel CLA 2002-09-04 05:17:29 EDT
*** Bug 20558 has been marked as a duplicate of this bug. ***
Comment 4 Kai-Uwe Maetzel CLA 2002-09-04 06:16:53 EDT

*** This bug has been marked as a duplicate of 16879 ***