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.

Bug 90395

Summary: Need an ability to reuse tabs in editor
Product: platform Reporter: Roman Ondruska <rondruska>
Component: TextAssignee: Petr Nejedly <pnejedly>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: anebuzelsky, arseniy
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 35586    

Description Roman Ondruska 2006-11-30 22:56:26 UTC
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.
Comment 1 Petr Nejedly 2007-02-06 12:13:08 UTC
Oh, I couldn;t find this before I filled my own ;-)
Closing as dup.

*** This issue has been marked as a duplicate of 94607 ***