Bug 30356 - GB18030: Cannot wake up IME in the Editor view on Linux
Summary: GB18030: Cannot wake up IME in the Editor view on Linux
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 29979
Blocks:
  Show dependency tree
 
Reported: 2003-01-28 03:46 EST by Yu Zhen Fan CLA
Modified: 2003-03-04 21:16 EST (History)
3 users (show)

See Also:


Attachments
Screen shot of RemoveHotKeyBinding.jpg (93.12 KB, image/jpeg)
2003-01-28 03:58 EST, Yu Zhen Fan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yu Zhen Fan CLA 2003-01-28 03:46:07 EST
OS: RedHat8.0
Eclipse Build: 200212181304 Stable Build (M4)
JRE Version: J2RE 1.3.1 IBM build cxia32131-20021102 (JIT enabled: jitc)

Abstract: Cannot wake up IME in the Editor view on Linux

Re-produce steps:
1. Launch eclipse.
2. Open java file via Java Edit or Text Edit.
3. Press Ctrl+Space and try to wake up IME for GB18030 char input.

Expected Result: It should wake up IME using Ctrl+Space in the Edit view.

Execution Result:
1. Cannot wake up IME for GB18030 char input.
2. Cannot switch among several methods by pressing Ctrl+Shift.

Comments:
1. This problem occurs on GTK driver with both JDK1.3.1 and JDK1.4.0.
2. This problem occurs on Motif driver with both JDK1.3.1 and JDK1.4.0.
3. We remove the Key Bindings for Ctrl + Space, and the problem still exist. 
Please refer to =>RemoveHotKeyBinding.jpg
4. We can wake up IME by pressing Ctrl+Space and switch among several methods
by pressing Ctrl+Shift with gEdit,StarOffice and other applications.
5. We can use Ctrl+Space to wake up IME on some panels with GTK build and some 
with Motif build, for example:
1) Click Windows->Preference->Application Server, for the "Host name or IP 
address" edit box:
GTK build (with both JDK1.3.1 and JDK1.4.0) cannot wake up IME. 
Motif build (with both JDK1.3.1 and JDK1.4.0) can wake up IME.

2) Click Search->Java Search, for the "search string" edit box:
GTK build (with both JDK1.3.1 and JDK1.4.0) can wake up IME. 
Motif build (with both JDK1.3.1 and JDK1.4.0) can wake up IME.

3) Click File->Import->File system, for the "Directory" edit box:
GTK build (with both JDK1.3.1 and JDK1.4.0) cannot wake up IME. 
Motif build (with both JDK1.3.1 and JDK1.4.0) can wake up IME.

4) Click Windows->Preference->WorkBench->Path Variables, then click New 
button, for the "Variable name" edit box:
GTK build (with both JDK1.3.1 and JDK1.4.0) can wake up IME. 
Motif build (with both JDK1.3.1 and JDK1.4.0) can wake up IME.
Comment 1 Yu Zhen Fan CLA 2003-01-28 03:58:53 EST
Created attachment 3171 [details]
Screen shot of RemoveHotKeyBinding.jpg
Comment 2 Yu Zhen Fan CLA 2003-01-28 04:25:17 EST
After modifying the eclipse config file, as suggested by Cam Le, I can wake up 
IME in the Editor view on Linux.
The file is: eclipse_install_dir\org.eclipse.jdt.ui_2.1.0\plugin.xml

I modify two places:

1. line:1893
<accelerator key="Ctrl+Space" 
id="org.eclipse.jdt.ui.edit.text.java.content.assist.proposals" />
2. line: 1968
<accelerator key="Command+Space" 
id="org.eclipse.jdt.ui.edit.text.java.content.assist.proposals" 
platform="carbon" /> 

After commenting the above two lines, I can wake up IME in the Editor view on 
Linux.
Comment 3 Yu Zhen Fan CLA 2003-01-29 21:13:13 EST
Appended comment as 5.(5), 6
5) Click File->New->Project, then click Next button, for the "Project name" 
edit box:
GTK build (with both JDK1.3.1 and JDK1.4.0) cannot wake up IME. 
Motif build (with both JDK1.3.1 and JDK1.4.0) can wake up IME.

6. With GTK build, when we try to rename a project name with GB18030 chars (By 
menu Refactor->Rename...), it works fine.
Comment 4 Kai-Uwe Maetzel CLA 2003-02-03 08:45:36 EST
On which locale are you running? Our configuration file contains explicit code 
that redefines the Content Assist action for Chinese locales. 

Moving to Platform UI for the following two points.
1) Handling of Chinese locales. (Tod is the internationalization wizard.)
2) Checking whether undefining actions in the key binding UI does not solve the 
problem.
Comment 5 Nick Edgar CLA 2003-02-03 15:38:55 EST
Tod and Chris, please investigate the issues Kai mentions.
Comment 6 Tod Creasey CLA 2003-02-03 16:06:56 EST
Please see SWT Bug 29979 - there is a general problem with using the IME in 
Linux - I don't think it is related to Key Bindings.

The remapping of content assist is an orthogonal problem to this - the Ctrl-
Space is taken by the OS before key bindings get it. 
Comment 7 Yu Zhen Fan CLA 2003-02-11 05:12:39 EST
1. We still cannot wake up IME in Java Edit and Text Edit in GTK 2.2.
2. We can wake up IME on the panels mentioned by above Comments 5 in GTK 2.2.
3. It seems that it works only for single-line text widget, it doesn't work 
for multi-line text widget.
Comment 8 Liu Yang CLA 2003-02-13 01:28:04 EST
Verified with M5 build.

Same bug still exists: can NOT wake up IME in Java Editor and Text Editor.

In GTK 2.0.6, can wake up IME for the editbox mentioned in comment 5.2), 5.3) 
and 5.4), can NOT wake up IME for the editbox mentioned in comment 5.5)

When I upgrade to GTK 2.2.0, can wake up IME for all the editbox mentioned 
above.
Comment 9 Liu Yang CLA 2003-02-17 02:06:18 EST
For GTK 2.0.6 and GTK 2.2.0, appended comment as 5.(6) - 5.(9)
6) Click Menu Run...->Arguments Tab, in the Program Arguments Editbox and VM 
Arguments Editbox.
In GTK 2.0.6 Can not wake up IME
in GTK 2.2.0 Can wake up IME

7) Click Menu File->Export...->JAR file, in the jar file name editbox.
In GTK 2.0.6 Can not wakeup IME
In GTK 2.2.0 Can wakeup IME

8) Click File->new Class, in the class name editbox.
Can wakeup IME in both in GTK 2.0.6 and GTK 2.2.0,

9) Click File->new Other...->Java Class, in the class name editbox.
In GTK 2.0.6 Can not wakeup IME
In GTK 2.2.0 Can wakeup IME
Comment 10 Yu Zhen Fan CLA 2003-03-02 23:31:00 EST
verified with RC1 build.

This bug is fixed.
Comment 11 Tod Creasey CLA 2003-03-03 08:10:20 EST
Marking as fixed.
Comment 12 Yu Zhen Fan CLA 2003-03-04 21:16:46 EST
Marking as verified.