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 - Need an ability to reuse tabs in editor
Summary: Need an ability to reuse tabs in editor
Status: RESOLVED DUPLICATE of bug 94607
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
Depends on:
Blocks: 35586
  Show dependency tree
Reported: 2006-11-30 22:56 UTC by Roman Ondruska
Modified: 2008-12-22 10:31 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Roman Ondruska 2006-11-30 22:56:26 UTC
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
This does not apply to modified sources (editors), which should not be reused; a
new window is opened in such case.

Currently, we use method (org.openide.text) to display sources. For
the purpose described above we need an extended API, which will return some 'tab
ID' when 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 ***