In CND we have Registers view that acts absolutely the same as all other debugger views like callstack or variables (represent only active session). Now we have to create it ourselves. That would be great if View class could be extended and/or be a part of public API so that we could subclass it or just create our own views with all default behavior that ViewModelListener provides.
I agree that it'd be good to have it in the APIs.
Created attachment 122957 [details]
The proposed API change.
Please review the proposed API change.
Thanks for the review, I'll push the API change tomorrow.
The API change is pushed as http://hg.netbeans.org/main/rev/5be7e4c53161
Associated changes were done in Java debugger modules:
Integrated into 'main-golden', will be available in build *201208190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #198385: ViewFactory API introduced for an easy creation of custom debugger views.