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 226760 - ResourceString bundle location being incorrectly read and written
Summary: ResourceString bundle location being incorrectly read and written
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 09:10 UTC by grandinj
Modified: 2013-02-27 19:57 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 grandinj 2013-02-27 09:10:12 UTC
There are 2 symptoms
(1) when first loading a form, the form designer cannot find the strings for my localised properties
(2) if I "fix" the strings in the form designer by telling it where my resource bundle file lives, it then stores the result incorrectly.

This problem appeared somewhere between version 7.2.1 and 7.3

For example:

My project home is in
   C:\Data_Files\Eclipse\ITUClient

My resource bundle lives in 
   src/peralex/ituclient/resources/textRes.properties
under my project folder.


Loading and saving one of my existing forms results in the designer rewriting this: 

  <Property name="text"
            type="java.lang.String" 
            editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
    <ResourceString bundle="src/peralex/ituclient/resources/textRes.properties"
                    key="DirectionControl.Peak_Mode"
                    replaceFormat="textRes.getString(&quot;{key}&quot;)"/>
  </Property>

to this:

  <Property name="text"
            type="java.lang.String"
            editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
    <ResourceString bundle="Data_Files/Eclipse/ITUClient/src/peralex/ituclient/resources/textRes.properties"
                    key="DirectionControl.Peak_Mode"
                    replaceFormat="textRes.getString(&quot;{key}&quot;)"/>
  </Property>
Comment 1 Tomas Pavek 2013-02-27 17:00:45 UTC
This looks more like some project setup problem, there is a problem determining what the classpath source root is. What type of project do you have? Can you share it, or provide a sample project where the problem can be reproduced? It does not seem to happen with a regular JavaSE project.
Comment 2 grandinj 2013-02-27 19:57:18 UTC
Weird. 

I reverted from 7.3 back to 7.2.1 and the problem went away.

I'll have to re-install 7.3 and strip the project down to a manageable size, then I'll post it here.