This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
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...
looks good
Thanks for the review, I'll integrate the patch tomorrow.
Integrated as changeset: 182185:8fc152089118 http://hg.netbeans.org/main/rev/8fc152089118
A reference of A-F8.shadow also needs to corrected: changeset: 182187:bd82591bff90 http://hg.netbeans.org/main/rev/bd82591bff90
Integrated into 'main-golden', will be available in build *201011130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8fc152089118 User: mentlicher@netbeans.org Log: #191394 Put Evaluate action into Debugger Core UI module and make it based on ActionProviders providing ACTION_EVALUATE action.