Community
Participate
Working Groups
In the following Scenario where enum States { State1, State2, }; and I enter this code somewhere States state = [CTRL+Space] it should display the values of "States" and insert "States.[selected States]" into the code. Furthermore when I type States state = States2; The QuickFix should be able to resolve "States2" to "States.State2" cause it knows the type of "state". Could that be done? Maybe I could even implement the patch myself but I have no point of reference how to implement such QuickFix Proposal or ContentAssist contribution.
>it should display the values of "States" This works for me using 3.5 M3. >Maybe I could even implement the >patch myself but I have no point of reference how to implement such QuickFix Markus or Martin, please give some hints.
>Maybe I could even implement the >patch myself but I have no point of reference how to implement such QuickFix This could be added to org.eclipse.jdt.internal.ui.text.correction.UnresolvedElementsSubProcessor#getVariableProposals(..) (probably ends up in addSimilarVariableProposals(..)).