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

Bug 88479

Summary: [Bidi] StyledText switches IME aggressively (BIDI)
Product: [Eclipse Project] Platform Reporter: Randy Hudson <hudsonr>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: normal    
Priority: P3 CC: bamir, kleind, mukund, yanghang
Version: 3.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Randy Hudson CLA 2005-03-18 11:27:29 EST
Create an RTOL StyledText widget with no text.
Switch the input mode to English.

Type "1 H", then press BACKSPACE.  The IME is switched to Arabic.
Comment 1 Felipe Heidrich CLA 2005-03-22 17:37:32 EST
For me it is even worse, it switches back to Arabic right after I typed "1".
What version of Eclipse/SWT are you running ?
To reproduce the problem you described I need to:
[initial state: Arabic mode]
1. type 1
2. type space
3. switch to English
4. type h
5. press backspace
Comment 2 Randy Hudson CLA 2005-03-22 17:40:23 EST
No, I did:
1. switch to English
2. type 1
3. type space
4. type h
5. press backspace

I have an idea for a fix. Changing modes should not be based on levels, but 
character types.
Comment 3 Felipe Heidrich CLA 2005-03-22 17:57:17 EST
I agree, using level to set the IME is bad, see Bug#80056

Do you think I should be using character type (i.e. Character.getType(char)) 
instead ? Is so, I'm afraid I don't understand how that would work.
Comment 4 Randy Hudson CLA 2005-03-23 10:46:00 EST
By type, I mean BiDi char type.  Whether it is strong, weak, or neutral, and 
then of course the direction in each case.  I think neutral and perhaps weak 
characters should not cause the IME to change.

Comment 5 Felipe Heidrich CLA 2005-03-23 15:45:51 EST
The only way I know to get the bidi type of a character is 
Character.getDirectionality(), which is only available on java 1.4.
Even if I was allowed to use java 1.4, the bidi type would not help fixing 
Bug#80056. 
Comment 6 Felipe Heidrich CLA 2005-06-14 13:03:40 EDT
*** Bug 75058 has been marked as a duplicate of this bug. ***
Comment 7 Felipe Heidrich CLA 2005-06-14 13:14:52 EDT
Get a LTR StyedText, change the IME to hebrew, type a few letters, use 
backspace to delete all the letters, after deleting the last letter the IME 
switches to English.

The IME should only change when the caret is moved by the mouse or arrow keys I 
believe, not when text is been edit. See Bug 58272.
The caret level is being reset for every key action, this is cause of this 
problem, action sush as DELETE_PREVIOUS should not always cause the ime to 
change.
Comment 8 Felipe Heidrich CLA 2009-08-17 16:28:24 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 9 Felipe Heidrich CLA 2010-11-01 10:44:13 EDT
*** Bug 129140 has been marked as a duplicate of this bug. ***
Comment 10 Felipe Heidrich CLA 2010-11-01 10:52:51 EDT
*** Bug 329174 has been marked as a duplicate of this bug. ***
Comment 11 mukundan desikan CLA 2011-01-17 14:40:28 EST
Hi

Will there a fix for this issue sometime soon?
Comment 12 Felipe Heidrich CLA 2011-01-17 14:54:27 EST
(In reply to comment #11)
> Hi
> Will there a fix for this issue sometime soon?

We don't have API to fix this problem at this time. This is not in the plan. Sorry.
Comment 13 Leo Ufimtsev CLA 2017-08-03 12:33:36 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 14 Eclipse Genie CLA 2020-05-05 14:49:06 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.