Project: JDT
Bug 95708 [nls tooling] Wizard for Eclipse NLS doesn't handle duplicated keys
Reported: 2005-05-18 03:33:58 | Status: resolved fixed

M7 1. with the new NLS scheme (fields), translate the following file and give both fields the same key "hello_key", First problem: Messages file gets duplicated key: Remove the dup key. 2. Open the NLS wizard again, change the second key to "hello_key2" Second problem: A new key-value pair is added to the properties file, but no new field is created. class A { String lab1= "Hello"; String lab2= "Hello"; }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/nls/NLSSourceModifierTest.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/AccessorClassCreator.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/AccessorClassModifier.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSPropertyFileModifier.java