Community
Participate
Working Groups
Build Identifier: Quick Fix only suggests assigning to new fields or local variables. It would be nice to select existing ones that match type. Show another pop-up window with the existing fields/variables once the fix is selected? Reproducible: Always Steps to Reproduce: 1. Put cursor on statement. 2. Press CTRL+1
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.