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 59573 - Editor Tab Refresh when file becomes r/o or r/w
Summary: Editor Tab Refresh when file becomes r/o or r/w
Status: RESOLVED DUPLICATE of bug 129178
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 01:13 UTC by netbeanz
Modified: 2009-04-29 10:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description netbeanz 2005-06-03 01:13:47 UTC
If a read-only file is opened, then the tab shows the filename and r/o 
(readonly) flag. While the file is still opened and the file is made writable, 
the tab is not getting refreshed and the r/o flag still exists in the tab.

It would be nice if that r/o flag gets removed or added whenever the read-only 
attribute of the file is changed.
Comment 1 Marian Mirilovic 2006-02-07 12:05:04 UTC
Yes, that right, it doesn't work in NB 5.0 neither. But when you start to edit
it, it chenges itself diplay name and it's editable.
Comment 2 Jaroslav Tulach 2006-03-08 15:46:26 UTC
I doubt I can implement it. There is no notification that a file changed its 
state. Also I do not consider this to be significant at all.
Comment 3 Jaroslav Tulach 2006-05-05 07:58:31 UTC
Radek, I believe that without some notification from filesystems, I cannot do 
anything. Can you implement such kind of notification? You watch lastModified, 
so possibly you could also watch for canWrite and if it changes fire 
fileChange or fileAttributeChange event?
Comment 4 Antonin Nebuzelsky 2008-04-15 17:11:11 UTC
Reassigning to new module owner jskrivanek.
Comment 5 Jiri Skrivanek 2008-11-21 14:45:19 UTC
Possible but may slowdown refresh.
Comment 6 Jiri Skrivanek 2009-04-29 10:59:30 UTC
Fixed as issue 129178.


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