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.
Motivation: ----------- We are going to reimplement the way how NB debugger displays sources (scheduled for NB 6.0, M6). The user typically navigates through a lot of sources, which currently remain open after the debugging session finishes and need to be explicitly closed (see also issue #35586). We want to use a different approach based on reusing editor tabs: If a new source (source that is not displayed in the editor) is to be shown and the debugger has not opened any window yet, a new window is opened for the source. If there is already a window opened by the debugger, its source is replaced with the source to be shown -> no more than one window is opened automatically by debugger. This does not apply to modified sources (editors), which should not be reused; a new window is opened in such case. RFE: ---- Currently, we use Line.show() method (org.openide.text) to display sources. For the purpose described above we need an extended API, which will return some 'tab ID' when Line.show() is called and also accept this ID when tab is to be reused. ID concept should be distributed to other methods dealing with tab management.
Oh, I couldn;t find this before I filled my own ;-) Closing as dup. *** This issue has been marked as a duplicate of 94607 ***