Bug 270121

Summary: [quick fix] Guess class type from variable name when "Create field" quick fix is used
Product: [Eclipse Project] JDT Reporter: lorenzo <l.bolzani>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description lorenzo CLA 2009-03-26 09:50:47 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. type in a java editor, inside a method, something like

myClass = null;

2. Use ctrl+1 to open quick fix menu and choose "Crate field"

3. If a class called MyClass it present the newely created field should use this class by default.


Bye

Lorenzo
Comment 1 Dani Megert CLA 2009-03-26 10:17:40 EDT
Would be nice but only if RHS cannot be determined.