Product Version = NetBeans IDE 6.9 RC2 (Build 201005312001)
Operating System = Windows Vista version 6.0 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01
When a file is read-only and is opened, the background is gray. If the file is changed to writable, the background is still gray. The file must be reopened to change back to white.
I guess you mean background in editor.
*** Bug 187733 has been marked as a duplicate of this bug. ***
Is there any possibility to fix this in 7.0?
AFAIK there's no listener for changes in modifiability of the document so we will have to do some kind of periodic checks for modifiability (likely just for the file being edited) preferably in post-7.0.
I thought that the event is fired in
fireFileAttributeChangedEvent("DataEditorSupport.read-only.refresh", null, null);
Mila, it is a regression comparing to 6.9.1 and in context for our remote mode (when all files are read only until connection is established) it is rather problematic for user.
Let me rise priority because of regression.
In case it's really important for you to have it in 7.0 then please test the fix first and then raise it to P1 so that I can consider porting it to 7.0 RC2. The fix is IMHO not risky and if it's not too late then we should possibly be able to port it.
verified in trunk for local and remote file systems
Integrated into release70:
54a582d206fa transplanted to f850e2b05974
Integrated into 'main-golden', will be available in build *201104010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Miloslav Metelka <firstname.lastname@example.org>
Log: #187561 - When Read-Only File is changed to Writable, the Gray Background stays.
Product Version: NetBeans IDE 7.0 RC2 (Build 201104060000)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334
System: Mac OS X version 10.6.7 running on x86_64; MacRoman; en_US (nb)