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.
In order to resolve issue #238977, the most usable approach, I think, would be to have a possibility to create a view with a "runtime" JavaScript source on demand, next to the current "Source" view. That means that for a particular file, we need be able to add, at some moment, another view and remove it when it's not necessary. I did not find a way how to achieve this with the current multiview APIs. We'd need a way how to add/remove a MultiViewDescription implementation for a particular file, or have some "dynamic" version of MultiViewDescription, that would be able to show/hide itself on a particular file.
Created attachment 142856 [details] API changes
Created attachment 142857 [details] The whole patch
I'll integrate the changes tomorrow.
core-main 03550294bb93
Integrated into 'main-silver', will be available in build *201312180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/03550294bb93 User: S. Aubrecht <saubrecht@netbeans.org> Log: #239088 - add/remove multiview elements at runtime