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 34065 - multiple editor tabs for a single file
Summary: multiple editor tabs for a single file
Status: CLOSED DUPLICATE of bug 33040
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-05-30 20:03 UTC by schwarcz
Modified: 2008-12-22 16:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide screen shot (182.00 KB, image/jpeg)
2003-05-30 20:03 UTC, schwarcz
Details
ide log (218.44 KB, text/plain)
2003-05-30 20:05 UTC, schwarcz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schwarcz 2003-05-30 20:03:01 UTC
At intermittent time, the NB seems to loose track of which 
source files are being displayed in the editor tabs.  In 
this case double clicking on the source file in the 
explorer results in an additional tab being created for 
the source file.  The result is (I think) the file is 
opened more than once and there are (perhaps due to this) 
synchronization issues.  Sorry I can't can't reproduce it 
reliably.  I will attach an ide.log as well as a jpeg of 
the IDE.

Note that the jpeg shows two tabs for the files 
ShowLocalHome, ShowAction, ShowForm
Comment 1 schwarcz 2003-05-30 20:03:54 UTC
Created attachment 10542 [details]
ide screen shot
Comment 2 schwarcz 2003-05-30 20:05:02 UTC
Created attachment 10543 [details]
ide log
Comment 3 mslama 2003-06-02 10:48:41 UTC
I think it is problem of editor. Editor should decide if it should
create and open new TopComponent instance or to switch to existing
instance. I saw this problem too randomly but I could not find way how
to reproduce.
Comment 4 David Konecny 2003-06-02 13:02:59 UTC
Thanx for the report. Unfortunately without knowing how to reproduce
it there is very little we can do about this. 

From the log I can see several things: eg. in IDE started on May 28,
2003 12:40:58 PM PDT there was problem that a few source files could
not be opened due to editor module issue 33040 (there is
IndexOutOfBoundsException a few times). Could this problem caused what
you are reporting? I'm not sure, but it is possible. In IDE started on
May 28, 2003 3:07:35 PM PDT a few files previously opened in editor
could not be reopened (Entry.java, IndexerException.java,
Indexer.java, ...). These files probably existed when you exited IDE
and were removed before the next start of the IDE?? Could this problem
caused what you are reporting? I would not think so, but everything is
possible.

With all the information I have at the moment I think that this
problem is sideeffect of issue 33040. It is not P2 because there is no
data lost and it is not reproducible.

If it happens again please attach as much info as possible. And also
try to play with IDE for a while: are they really the same files (move
mouse cursor over the editor tab and compare tooltip text)? if you
modify one and save it is the second one affected? does the problem
appear only on some concrete files or does double clicking on all
already opened files open second tab? and what about non-open files?
if you open some twice do you get two tabs or just one? The more info
the better chance we will be able to fix it. Thanx.

*** This issue has been marked as a duplicate of 33040 ***
Comment 5 Marian Mirilovic 2003-07-23 16:09:38 UTC
verified, closed - it's duplicate.