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 211819 - Move JFrame With Internationalization Will Not Undo Properly
Summary: Move JFrame With Internationalization Will Not Undo Properly
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-27 05:45 UTC by MackSix
Modified: 2013-01-29 05:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction. (54.47 KB, application/zip)
2012-04-27 05:45 UTC, MackSix
Details
Project that works. (77.96 KB, application/zip)
2012-05-25 23:22 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-27 05:45:05 UTC
Created attachment 118841 [details]
Project to use for reproduction.

1) Open attached project.
2) Create new package node.
3) Drag and drop NewJFrame.java into new package node with refactoring.
4) Click Undo Button.

The Undo just doesn't work properly. The reference to bundle.properties is wrong and the alternative language bundle files are blank.

Workaround: Use Mercurial commit instead. 


Product Version: NetBeans IDE Dev (Build 201204260400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 1 MackSix 2012-05-25 23:22:21 UTC
Created attachment 119902 [details]
Project that works.

When I move NewJFrame.java, it makes copies of all the language files in the new package. I don't believe that it is supposed to do this. All the projects I have made, exhibit this same behavior except the new attached project.

For some reason, the new attached project works correctly. NewJFrame.java is moved and refactored properly without creating new bundle files in the new package. The Undo then works properly. (The Redo does not update the package declaration and then Undoing again does not remove the import statement from the other file.)

See the new attached file.
Comment 2 MackSix 2013-01-29 05:02:53 UTC
I filed a separate issue for Comment 1 here: http://netbeans.org/bugzilla/show_bug.cgi?id=222568