Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 75058 - BIDI: Keyboard layer is changed automatically to English
Summary: BIDI: Keyboard layer is changed automatically to English
Status: RESOLVED DUPLICATE of bug 88479
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-26 16:02 EDT by amir CLA
Modified: 2009-07-14 10:20 EDT (History)
2 users (show)

See Also:


Attachments
A test file for reproducing the problem in a java project (2.54 KB, patch)
2004-09-27 16:25 EDT, amir CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description amir CLA 2004-09-26 16:02:51 EDT
Scenario:

1. Change the workbench into HATS (Host Access Transformation Server) 
perspective.
2. Create a new HATS project using 424 code page (Hebrew).
3. Open the Terminal and capture some host screen.
4. From Hats project view open the Project settings (under the project name).
5. Select: Rendering tab -> Rendering sets.
6. Click on Add button beside the big table.
7. Select some area from the screen with the mouse and click Next.
8. click on Text replacement icon (that with the glasses).
9. Click on Add button.
10. In the Text or HTML text box, change the the keyboard layer to Hebrew and 
type few characters.
11. Delete all charactes that have typed using the backspace key.

Result: The language layer is changed automatically to English.


I suspect that the reason of the defect below is that in Text Replacement 
Wizard , RTP developer use StyledText SWT Component, and it should be used in 
this wizard to properly display HTML data.
The problem outlined above with BIDI layer can be reproduced outside HATS , as 
it exists in any StyledText SWT component running on RAD6.
Comment 1 Felipe Heidrich CLA 2004-09-27 12:26:16 EDT
Which version of Eclipse are you running ?
I think I fixed this problem some time ago, can you try to reproduce this 
problem using a recent version of StyledText ?
Comment 2 amir CLA 2004-09-27 12:38:36 EDT
I use Eclipse 3.0

Anyway, the problem is reproductable in HATS on RAD6.0
Comment 3 Felipe Heidrich CLA 2004-09-27 13:07:43 EDT
Does it mean the problem isn't reproducable in any editor on Eclipse ?
Note: I don't have HATS.
Comment 4 amir CLA 2004-09-27 16:22:22 EDT
I don't know.
I didn't reproduced this problem in other place.
However, our development team claim that this is a SWT defect related to styled 
text. 

Here is what the developer guy wrote me:
"I investigated in the reason of the defect below , in Text Replacement 
Wizard , RTP developer use StyledText SWT Component, and it should be used in 
this wizard to properly display HTML data.
The problem outlined below with BIDI layer can be reproduced outside HATS , as 
it exists in any StyledText SWT component running on RAD6 and I already 
reproduced it by creating a simple java project on RAD6 which I attached below 
and the probem is recreatable in this project."


I'm attaching his test file here also.
Comment 5 amir CLA 2004-09-27 16:25:51 EDT
Created attachment 14806 [details]
A test file for reproducing the problem in a java project
Comment 6 Udo Walker CLA 2004-10-06 04:49:31 EDT
Hi,

I have this behavior, too. I used Eclipse 3.1M1.

What I did:

I copied a text and pasted it multiple times in the Java editor of the JDT.
Later, when I wanted to type a text the keyboard was switched to english; I have
a German keyboard layout here, i.e. later e.g. the * and / were on other keys.

Comment 7 Terri Lafoon CLA 2004-11-01 16:37:29 EST
Is there any update to this issue.. our HATS product requires RAD V6.. and they 
are getting pretty close to GM, so if there is an Eclipse refresh required, 
this needs to be worked out with RAD release team. I don't believe this is a 
problem specific to HATS, but would be seen in any StyledText SWT component 
running on RAD6. Please update if you can, thanks
Comment 8 Felipe Heidrich CLA 2004-11-01 17:30:31 EST
I still don't know how to reproduce this bug.
In my machine ALT+SHIFT changes the keyboard layout, are you sure isn't it 
what is happening to you ?

Comment 9 amir CLA 2004-11-07 06:21:57 EST
In my machine also, ALT+SHIFT changes the keyboard layout! 

I'm not sure this is cuase to the problem. 
Comment 10 Felipe Heidrich CLA 2005-06-14 13:03:40 EDT
The same problem but the another way around.

*** This bug has been marked as a duplicate of 88479 ***
Comment 11 Marwa Arafa CLA 2009-07-12 05:50:59 EDT
I tried the scenario of this Bug on RAD 7.5 "eclipse 3.4" and I received the same error "The language layer is changed automatically to English ".
Comment 12 Felipe Heidrich CLA 2009-07-14 10:20:14 EDT
(In reply to comment #11)
> I tried the scenario of this Bug on RAD 7.5 "eclipse 3.4" and I received the
> same error "The language layer is changed automatically to English ".

Note: if after deleting all the RTL characters the cursor moves over English characters, switching the keyboard layout to English is the right behaviour.
Use WordPad as reference.

See Bug 88479, Styled is a bit too eager to switch the keyboard layout.