Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 23498

Summary: 'Add closing parent' feature improvement
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: avijayr, Mike_Wilson
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2002-09-12 12:56:17 EDT
20020911

The 'Add closing parent when typing open parent' should check if there isn't 
already a closing parent following.

  String)
Adding a parent before 'String' should not add a closing one.
Comment 1 Claude Knaus CLA 2002-09-13 03:32:41 EDT
I have no idea what a closing parent is. You must mean parenthesis :-)

It's more complicated than that. The right way is to track all curly braces, 
brackets and parenthesis of the default Java partition and skip only if the 
tree structure is ok. In all other cases, the closing parenthesis, bracket or 
curly braces are inserted.
Comment 2 Claude Knaus CLA 2002-10-28 12:42:15 EST
*** Bug 24589 has been marked as a duplicate of this bug. ***
Comment 3 Kai-Uwe Maetzel CLA 2003-02-24 05:20:59 EST
Unassign due to staff changes.
Comment 4 Mike Wilson CLA 2008-04-13 13:01:55 EDT
Not sure how far this was taken, but the specific problem reported by this bug has been fixed. Tested in R3.4 M6a.