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 194877

Summary: Copying a JPanel File does not refactor the l10n texts properly
Product: guibuilder Reporter: sc1
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description sc1 2011-01-30 17:04:53 UTC
I often copy an existing Panel file as the new Panel looks quite similar. 

However, if you copy that file into another package ate least existing tooltip-text references into local bundle files cannot be resolved any more. 

Unfortunately the error occurs at runtime.

Reworking all that occurrences manually does help, but a complete refactor run would be helpfull.
Comment 1 Tomas Pavek 2011-05-25 15:08:30 UTC
You can try to use the automatic internationalization (can be turned on for new GUI forms, or for texts not internationalized yet). It could behave better with the refactoring.

Even if it does not, it can be temporarily turned off before the refactoring, which puts all strings back to the java file, then turned on after, which moves the strings to the actual bundle file again.