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

Bug 349335

Summary: [quick assist][1.7] Offer to replace <> with the inferred type
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: deepakazad, markus.kell.r, satyam.kandula
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 348493    
Bug Blocks:    
Attachments:
Description Flags
Fix & tests none

Description Dani Megert CLA 2011-06-14 11:24:53 EDT
3.7.

Offer a quick assist to replace <> with the inferred type.
Comment 1 Deepak Azad CLA 2011-06-21 09:36:52 EDT
+1. This could be quite useful in cases where it is not trivial for a user to find the inferred type e.g. bug 349336 comment 1
Comment 2 Markus Keller CLA 2011-07-06 06:50:22 EDT
After bug 348493 is fixed, this could also be interesting in 1.5 and 1.6 code (as quick fix).
Comment 3 Markus Keller CLA 2011-07-12 14:51:55 EDT
Created attachment 199527 [details]
Fix & tests

"Insert inferred type arguments" is offered as quick assist and as quick fix for class instance creations.
Comment 4 Markus Keller CLA 2011-07-12 14:52:29 EDT
Fixed in BETA_JAVA7.
Comment 5 Satyam Kandula CLA 2011-07-19 09:20:36 EDT
Verified using patch 1.0.0.v20110714-1400.

It is nice to see this even for the 1.6 projects.