Now cnd has its own evaluate action and would like to use the same shortcut as java does. But D-F9 is hardcoded for java evaluate. There is no way to reuse it, only override. Please introduce "provider" mechanism for evaluate action so that it can run provider which belongs to the current debugger active.
This will require some API change.
The solution might be to add ActionsManager.ACTION_EVALUATE constant and create EvaluateAction in Debugger Core UI, which will check for ActionsProviders having ACTION_EVALUATE action.
this is what I was thinking about
Created attachment 102817 [details]
The patch that makes Evaluate action to be generic.
Please review that simple API change...
Thanks for the review, I'll integrate the patch tomorrow.
Integrated as changeset: 182185:8fc152089118
A reference of A-F8.shadow also needs to corrected:
Integrated into 'main-golden', will be available in build *201011130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #191394 Put Evaluate action into Debugger Core UI module and make it based on ActionProviders providing ACTION_EVALUATE action.