Bug 270121 - [quick fix] Guess class type from variable name when "Create field" quick fix is used
Summary: [quick fix] Guess class type from variable name when "Create field" quick fix...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 09:50 EDT by lorenzo CLA
Modified: 2009-03-26 10:23 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 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.