Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328713

Summary: [nls tooling] Externalize string wizard 'Edit... ' dialog does key validation incorrectly
Product: [Eclipse Project] JDT Reporter: Raksha Vasisht <raksha.vasisht>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, deepakazad
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Raksha Vasisht CLA 2010-10-26 09:55:00 EDT
I20101025-1800

Steps:

package t;
public class Snippet {
    
    private static void p() {
        System.out.println("test");
    }
}

1) Externalize the string 'test' using the 'Externalize Strings' wizard
2) Click on the key (by default has a value 0) and edit
3) Type any character in the value field 

=> It says 'Key is not a valid Java Identifier' because it considers only 0 as the key and not the <prefix>_0 which is a valid key.

Also when I type a '\'in the common prefix box it appears as '\\' in the key and '\\' appears as '\\\\' although it validates the '\' and disables the finish button, it shows incorrectly in the key.
Comment 1 Eclipse Genie CLA 2020-05-10 16:05:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.