Product Version: NetBeans IDE Dev (Build 20081016162902)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
have j2se project with jFrame in some package
1. insert some components into jFrame
2. switch on auto i18n
3. save all files
4. rename the package with jFrame
5. insert another component into jFrame
6. do Save All files -> warning like Bundle file was modified externally
org.openide.text.CloneableEditorSupport$4: File C:\Documents and Settings\Admin\My
Documents\NetBeansProjects\JavaApplication15\src\newpackage66\Bundle.properties was modified externally. Overwrite it?
[catch] at org.netbeans.modules.i18n.form.I18nServiceImpl.autoSave(I18nServiceImpl.java:425)
Created attachment 72031 [details]
more significant in Java Desktop Application project where resource management is switched on as default
See fixes for issues #149330, #149152, #149069, #149330.
There was change to use actual file time instead of System.currentTimeMillis. Also there added extra property to notify
change between CloneableEditorSupport and DataEditorSupport.
Fix should be to fire "expectedTime" with new file time when property file is renamed. See DataEditorSupport.
copied from 149069
Product Version: NetBeans IDE Dev (Build 200810240201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Another approach :(
Now after moving a .properties file
Steps to reproduce:
1, Create new J2SE project with default setting.
2, Create a new package
3, In the new package create new JFrame Form and new Properties file with some key and value
4, Use the Properties file in the Form (e.g. use the value from the properties as Form's title)
5, Now move the Properties file to another package, add new key and value (or change it anyhow) and try to save it
-> the well known dialog is here again
(And agin: when using Ctrl+S, the dialog offers "Yes" and "No" buttons, while using "Save All" there is only "OK"
Thanks for the steps to reproduce.
I will fix it using the "expectedTime" property.
If issue #48263 (task "Do not bundle multiple .properties file into a DataObject") is going to be handled by NB 7.0,
then is not worth fixing this (#150432) bug before.
Marian, according to simple reproducible testcase and due to a bad consequences of this bug, this should be really fixed
into 65patch1. Could you look at it once again?
OK, I am going to fix it now.
The issue didn't pass the nomination process by nomination cut-off date. It has been marked as 65fixes2-candidate.
fixed in trunk
Product Version: NetBeans IDE Dev (Build 200812150750)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
The fix was ported into release65_fixes repository.
re-verified with 65patch2