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 205987 - Moving class doubles comments in bundle.properties
Summary: Moving class doubles comments in bundle.properties
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-06 11:18 UTC by asenk
Modified: 2011-12-22 13:32 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 asenk 2011-12-06 11:18:08 UTC
Product Version: NetBeans IDE 7.1 (Build 201112051121)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 3.0.0-13-generic-pae running on i386; UTF-8; en_US (nb)

1.Create new J2SE project, create JFrame Form and ad Jlabel and JButton into it.
2.In Navigator select JFrame NewJframe
3.In properties panel check Automatic Internationalization
4.Bundle.properties File is created and looks like:

# To change this template, choose Tools | Templates
# and open the template in the editor.
NewJFrame.jButton1.text=jButton1
NewJFrame.jLabel1.text=jLabel1

5. Move NewJFrame class into another empty package (use refactoring).
6. NewJframe is moved new Bundle.properties File is created, but looks like:

# To change this template, choose Tools | Templates
# and open the template in the editor.

# To change this template, choose Tools | Templates
# and open the template in the editor.
NewJFrame.jButton1.text=jButton1
NewJFrame.jLabel1.text=jLabel1
Comment 1 MackSix 2011-12-18 11:31:26 UTC
This also occurs if you use the table bundles.properties editor to add a comment. The comment gets added twice.

Product Version: NetBeans IDE 7.1 (Build 201112051121)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 2 Jan Becicka 2011-12-21 12:30:37 UTC
gui builder is handling addition to .properties files, right?
Comment 3 MackSix 2011-12-22 13:32:44 UTC
(In reply to comment #2)
> gui builder is handling addition to .properties files, right?

I don't think so, you right click on .properties file in the Project tree view and choose "Open" and it opens a table like editor and their is a field at the bottom to add a comment.