Summary: | [quick fix] Assign statement to existing field/local variable | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Paul Benedict <pbenedict> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, deepakazad |
Version: | 3.7 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Paul Benedict
2010-12-17 15:05:51 EST
Moving to JDT/UI. Can you give more details/examples? This is a simplistic example. Take for instance this code: int x = 2; 3; // < cursor at this line Quick fix gives me the options to: * Assign statement to new local variable * Assign statement to new field I would like the options to be expanded so I can choose compatible existing variables: * Assign statement to existing local variable 'x' My initial thought was to list of the existing variables, but that might become too sloppy looking. Another thought is to trigger a dialog where Eclipse can process acceptable type variables/fields for the user to select. |