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 9395 - Editor don't know which file I'm editing !!!
Summary: Editor don't know which file I'm editing !!!
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 critical (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-03 21:46 UTC by dmladek
Modified: 2008-12-22 18:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Crazy Editor?!? (59.61 KB, image/jpeg)
2001-07-20 20:39 UTC, dmladek
Details
Confused Editor! (100.17 KB, image/png)
2001-07-20 20:39 UTC, dmladek
Details
NPE is the last record (11.68 KB, text/plain)
2001-07-20 20:39 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2001-02-03 21:46:44 UTC
[Pilsen-010202_02]
jdk1.3.1-b14 sun
rh70
===================

Today I've found creazy behavior of Editor.
It mixed up ("randomly") opened files-their content with their names.
So, I absolutly have noidea wich file I was editing!!!

It happend under CVS FS.
I also made a snapshot for you. It'll tell you much more then in words.

But,I tried to describe this.
Situation:
===========
I had 2 files (as you can see). They named C1.java, C2.java
I edited them simultionasly, so I had them opened in Editor window at
the same time.
When I switched from one file to another by clicking on tabs in editor.
The title of editor didn't correspond to the label of tab.
So I became very, very confused.
I closed one of them, second leaving opened and unsaved.
Probably I thing it was file named C1.java (from content of editor
you can recognize it). But in the editor Title there was writen: C2
When I tried to close the editor(and file), question arraised:
"File C1 is .... Save it?"

Better will be to see a picture[jpeg]
Comment 1 dmladek 2001-02-03 21:47:59 UTC
Created attachment 562 [details]
Crazy Editor?!?
Comment 2 dmladek 2001-02-03 21:57:59 UTC
I'm just want you to know about this problem. Probably you won't be
successful with the reproduction. I'm not able too.
But it happend to me 2 times:-(
If it happens again, thread dump will help, won't be?
or what will help to prevent such this editor confusing?
Comment 3 dmladek 2001-02-05 11:24:59 UTC
Today it happend with new [Build-010203]

Possible steps to reproduce:
=============================
1) create project in [Build-010201_1CE]
I had opened 3 files in editor, in Editing WS.
(You can do it exactly as it's on picture, but it doesn't matter)
2) close this section and
3) install new [Build-010203CE]
4) import project from previous one using immport cmd-line utility
5) start new ide
6) open MemoryView (from Defaultly mounted FS)
--------
Editor is confused it realy doesn't know which file is which one.
it thinks that newly opened file is Memory view but as you can
see it displays content of file C1.
Switching files to C2, C1 doesn't help. It still thinks that it offers
to you MemoryView and display wrong content.
After switching to the firstly opened file (in my case readme.txt)
it starts behave correctly.

new [png] picture is attached.
Comment 4 dmladek 2001-02-05 11:26:59 UTC
Today it happend with new [Build-010203]

Possible steps to reproduce:
=============================
1) create project in [Build-010201_1CE]
I had opened 3 files in editor, in Editing WS.
(You can do it exactly as it's on picture, but it doesn't matter)
2) close this section and
3) install new [Build-010203CE]
4) import project from previous one using immport cmd-line utility
5) start new ide
6) open MemoryView (from Defaultly mounted FS)
--------
Editor is confused it realy doesn't know which file is which one.
it thinks that newly opened file is Memory view but as you can
see it displays content of file C1.
Switching files to C2, C1 doesn't help. It still thinks that it offers
to you MemoryView and display wrong content.
After switching to the firstly opened file (in my case readme.txt)
it starts behave correctly.

new [png] picture is attached.
Comment 5 dmladek 2001-02-05 11:35:59 UTC
Created attachment 568 [details]
Confused Editor!
Comment 6 Petr Nejedly 2001-02-06 08:21:59 UTC
So all what is wrong is window title, right?
Editor knows perfectly what is editing (its Document, it doesn't
care for names/files).
It is the responsibility of the windowing system to adjust
window titles.
Comment 7 Petr Nejedly 2001-02-06 09:57:59 UTC
Sorry, overlooked the tab title in the editor window is confuced too.
Wasn't it repaint problem?
Comment 8 dmladek 2001-02-06 18:34:59 UTC
Sorry for late response, but you've answered yourself:-)
No reproduction for now, Will help any FullThreadDump?

I don't know if it was repaint problem. Maybe...? (What's the definition?)
But it seems more to me that it doesn't load anything in "InputStream",
maybe forgot it. Editor has knew that some file should be opened, but
forgot load it and instead of it offer it the previous one.
If I tell you that the Editor window blinked as it usualy does when you
open a file, does it help you?
Comment 9 dmladek 2001-02-08 12:18:59 UTC
[NBdev-120]
today it happend again.
2 opened files in editor...Editing WS
attempt to open MemoryView leaded that editor was still displaying
previously edited file in the newly added TAB"MemoryV..."
The title was corresponding to the tabs.

a NullPointerException was thrown so I'm attaching my ide.log
Comment 10 dmladek 2001-02-08 12:20:59 UTC
Created attachment 591 [details]
NPE is the last record
Comment 11 David Simonek 2001-02-12 14:28:59 UTC
Huh, this is mixture of several bugs (#9321, #9521). There were two bugs in
window system causing window title not to be updated. For user, it might look
like editor don't know which file is editing.
But now, all bugs related to title updating were fixed, so this shouldn't happen
anymore. I'm marking it as duplicate.

However, very last exception is totally different case and different bug.
Please, create new bug with reproduction steps (I need reproduction, because
exception ends deep in Swing code and without reproduction I'm lost).

Thankx alot,
Dafe


*** This bug has been marked as a duplicate of 9321 ***
Comment 12 dmladek 2001-02-13 17:25:59 UTC
I'm glad you solved it!
Probably it seems that it is fixed and no reproduction was appeard.
So that is I can't give you exact steps to reproduce it. (only what I've written
in this bag already)
Comment 13 Jan Lahoda 2001-02-26 09:11:29 UTC
I don't think it is fixed and I think it is not clear duplicate of any of 9321 
and 9521. See bug #9833.
Comment 14 Jan Lahoda 2001-02-26 09:12:57 UTC
*** Issue 9833 has been marked as a duplicate of this issue. ***
Comment 15 David Simonek 2001-02-27 08:28:25 UTC
Jan Lahoda, please do not reopen this bug anymore, reproductions don't work, 
exceptions are not thrown, it's fixed!!! Issue 9833 is similar as for what user 
sees, but caused by something else, probably also under different circumstances. 
Please, think twice next time.
Comment 16 dmladek 2001-05-18 17:25:06 UTC
I haven't any more again troubles with the Editor.
So I believe that it's been fixed.
Verified on NB32, NBdev-191
Comment 17 Quality Engineering 2003-07-01 16:11:44 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.