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

Bug 177295

Summary: [bidi] HCG:Undesired order of file names in RTL direction of eclipse
Product: [Eclipse Project] JDT Reporter: Tamir Noach <ntamir>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: benno.baumgartner, camle, daniel_megert, kitlo, ntamir, obahy, steven.wasleski, Tod_Creasey, tomerm
Version: 3.2   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
The attachment describe the defect by encircling the problem with Red rectangles.
none
The first attachment in JPEG format
none
Java file name appear in RTL orientation. none

Description Tamir Noach CLA 2007-03-14 06:24:14 EDT
Build ID: Version 3.2.0

Steps To Reproduce:
Note : Caps Lock latin letters are Hebrew letters.
Please folllow the instructions:
1. Run eclipse with -dir rtl flag.
2. open a Java project(or any other project the user want).
3. Create a file in the project, when giving a BiDi name to the file.

Expected Resut: EMANELIF.txt

Actual Result: txt.EMANELIF.

More information:
Comment 1 Tamir Noach CLA 2007-03-15 11:50:09 EDT
(In reply to comment #0)
> Build ID: Version 3.2.0
> 
> Steps To Reproduce:
> Note : Caps Lock latin letters are Hebrew letters.
> Please folllow the instructions:
> 1. Run eclipse with -dir rtl flag.
> 2. open a Java project(or any other project the user want).
> 3. Create a file in the project, when giving a BiDi name to the file.
> 
> Expected Resut: EMANELIF.txt
> 
> Actual Result: txt.EMANELIF.
> 
> 

Comment 2 Tamir Noach CLA 2007-03-15 13:46:45 EDT
Created attachment 60987 [details]
The attachment describe the defect by encircling the problem with Red rectangles.
Comment 3 Tamir Noach CLA 2007-03-15 13:48:39 EDT
I've attach a compress image, which describe the defect.
Comment 4 Karice McIntyre CLA 2007-03-15 16:50:33 EDT
When I click on the attachment there is an error.  
In what view are you seeing the problem?  
Comment 5 Tamir Noach CLA 2007-03-19 04:58:10 EDT
Created attachment 61258 [details]
The first attachment in JPEG format
Comment 6 Karice McIntyre CLA 2007-03-19 10:29:59 EDT
To rectify this, the label provider of the Package Explorer would have to use the API provided in org.eclipse.osgi.util.TextProcessor.  
Comment 7 Tamir Noach CLA 2007-03-20 10:32:31 EDT
Changing the severity to match to BiDi criteria
Comment 8 Omar Bahy CLA 2007-04-06 20:03:09 EDT
If a mixed string of Arabic and English is used to name a Java file, the generated file name on the project tree is incorrectly ordered.

To regenerate the example below, name the java file as (ABCabc) where ABC are Arabic characters, and inspect the Project tree.

Project tree displays: abc.javaABC (incorrect)
Desired output: ABCabc.java (correct)
Comment 9 Tamir Noach CLA 2007-04-11 10:22:09 EDT
I run the test case with -nl iw flag, and the problem still exist.
(In reply to comment #0)
> Build ID: Version 3.2.0
> Steps To Reproduce:
> Note : Caps Lock latin letters are Hebrew letters.
> Please folllow the instructions:
> 1. Run eclipse with -nl iw flag.
> 2. open a Java project(or any other project the user want).
> 3. Create a file in the project, when giving a BiDi name to the file.
> Expected Resut: EMANELIF.txt
> Actual Result: txt.EMANELIF
> More information:

Comment 10 Tod Creasey CLA 2007-04-26 16:30:15 EDT
Are you creating a java file or a plain text file? if it is a plain text file please move this back to PlatformUI
Comment 11 Tamir Noach CLA 2007-05-01 05:25:30 EDT
Created attachment 65455 [details]
Java file name appear in RTL orientation.
Comment 12 Tamir Noach CLA 2007-05-01 05:26:23 EDT
(In reply to comment #10)
> Are you creating a java file or a plain text file? if it is a plain text file
> please move this back to PlatformUI

This defect has been verified with eclipse-SDK-I20070430-1300 Stream Integratin Build.
Moved the defect to PlatformUI.
Even when i run the defect with -nl iw flag, the defect remian with java files as well as text files.
Please see the new attached image.
Comment 13 Dani Megert CLA 2008-04-17 11:02:08 EDT
Fixed in HEAD.
Available in builds > N20080416-2000.
Comment 14 Benno Baumgartner CLA 2008-04-28 06:40:07 EDT
verified in I20080427-2000
Comment 15 Tomer Mahlin CLA 2008-05-05 02:35:00 EDT
 As far as I am concerned the defect can be closed. The originator can't do that since it does not work anymore with us.
Comment 16 Dani Megert CLA 2008-05-05 05:35:04 EDT
.