Bug 16952 - Brace and Parenthesis double-click matching is ambiguous
Summary: Brace and Parenthesis double-click matching is ambiguous
Status: RESOLVED DUPLICATE of bug 16879
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 20558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-22 14:27 EDT by Randy Hudson CLA
Modified: 2002-09-04 06:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***