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

Bug 352467

Summary: [1.7][formatter][preferences] Rename line wrapping preferences for "try" and "catch"
Product: [Eclipse Project] JDT Reporter: Ayushman Jain <amj87.iitr>
Component: UIAssignee: Dani Megert <daniel_megert>
Status: VERIFIED FIXED QA Contact:
Severity: trivial    
Priority: P2 CC: daniel_megert, raksha.vasisht
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix none

Description Ayushman Jain CLA 2011-07-19 10:48:06 EDT
BETA_JAVA7

In the formatter>Line wrapping options, we currently see under "Statements" category options for "try" and "catch".
These were introduced in 1.7 specifically to tackle the try with resources and multi-catch constructs and do not apply to the old try and catch constructs. The wording should reflect this. SO try should be renamed to "try with resources" and catch to "multi-catch".


Same goes for formatter>white space.
Comment 1 Dani Megert CLA 2011-07-20 04:56:02 EDT
(In reply to comment #0)
> BETA_JAVA7
> 
> In the formatter>Line wrapping options, we currently see under "Statements"
> category options for "try" and "catch".
> These were introduced in 1.7 specifically to tackle the try with resources and
> multi-catch constructs and do not apply to the old try and catch constructs.
> The wording should reflect this. SO try should be renamed to "try with
> resources" and catch to "multi-catch".
I agree.

> Same goes for formatter>white space.
But only for 'try' ('catch' was there before).
Comment 2 Dani Megert CLA 2011-07-20 04:56:59 EDT
==> use
try-with-resources
multi-catch
Comment 3 Dani Megert CLA 2011-07-21 04:38:22 EDT
Fixed in BETA_JAVA7.
Comment 4 Dani Megert CLA 2011-07-21 04:40:03 EDT
Created attachment 200060 [details]
Fix
Comment 5 Raksha Vasisht CLA 2011-08-03 03:29:00 EDT
Verified for Juno M1 with 4.2 build I20110729-0200.