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.
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
Created attachment 10542 [details] ide screen shot
Created attachment 10543 [details] ide log
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.
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 ***
verified, closed - it's duplicate.