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

Bug 181954

Summary: [bidi] BIDI3.3:<HCG:Directory path in new Java project wizard is not shown correctly with -nl iw flag.>
Product: [Eclipse Project] JDT Reporter: Tamir Noach <ntamir>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: benno.baumgartner, camle, daniel_megert, kitlo, markus.kell.r, martinae, steven.wasleski
Version: 3.3   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Tamir Noach CLA 2007-04-11 11:26:51 EDT
Steps To Reproduce:
Note: treat Caps Lock latin letters as BiDi letters Hebrew\Arabic.
Prerequisite : use a workspace with BiDi characters.
i.e : c:\CBA\FED.
1. Run eclipse with -nl iw.
2. Go to "File->New->Project->Java Project..", press the "Next" button.
3. Notice that the workspace path is shown in RTL direction in the "Directory" text box.

Actual Result: The dir path is presented as such :
FED\CBA\:c

Expected Result: c:\CBA\FED
Comment 1 Tod Creasey CLA 2007-05-02 09:04:58 EDT
Note that this is correct for the Simple Project - moving to JDT which likely also just need to use the TextProcessor.

If you want to see how we handle this see ProjectContentsLocationArea#updateLocaltionField where we 

locationPathField.setText(TextProcessor.process(selectedPath));
Comment 2 Martin Aeschlimann CLA 2007-05-08 12:14:56 EDT
Tod, What happens when you read out such a field. Will it contain the special characters?
Can a user remove the special characters?

I'm quite scared of having to add that code to setters of our input fields.



Comment 3 Martin Aeschlimann CLA 2007-05-08 12:18:42 EDT
not planed for 3.3
Comment 4 Tod Creasey CLA 2007-05-08 13:05:04 EDT
If you copy and paste you will also get the special characters.
Comment 5 Martin Aeschlimann CLA 2007-05-09 03:20:35 EDT
What about getText()? Can you use the string to find resources, or does it need to be converted back again?
Comment 6 Tod Creasey CLA 2007-05-09 07:54:38 EDT
You would need to deprocess in case the other code you were calling did not support these characters.

Bear in mind these are ONLY inserted in a BIDI Locale.
Comment 7 Dani Megert CLA 2008-04-17 11:09:00 EDT
It seems that Platform UI has the same problem, e.g. in New Project wizard.
Comment 8 Martin Aeschlimann CLA 2008-04-17 11:26:05 EDT
fixed > 20080417
Comment 9 Benno Baumgartner CLA 2008-04-28 06:32:50 EDT
verified in I20080427-2000