Bug 195946 - Can NOT input Chinese
Summary: Can NOT input Chinese
Status: CLOSED FIXED
Alias: None
Product: Data Tools
Classification: Tools
Component: SQL Editor Framework (show other bugs)
Version: 1.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.6M6   Edit
Assignee: Ren Junyan CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-07-10 03:08 EDT by zhuge CLA
Modified: 2008-07-01 17:39 EDT (History)
3 users (show)

See Also:


Attachments
patch for bug 195946 (1.10 KB, patch)
2008-03-13 04:43 EDT, Ren Junyan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zhuge CLA 2007-07-10 03:08:45 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. open the Java EE perspective and new a Dynamic Web Project named dwp;
2. new a servlet file named home_page.java and I can input Chinese characters into the file by pressing CTR+SPACE to activate Chinese input method;
3. new a script file named sql_function.sql, but I can NOT input any Chinese characters by press CTR+SPACE (note that: DO NOT activate the chinese input method).


More information:
Please help me!
Comment 1 Dani Megert CLA 2007-07-10 03:19:11 EDT
Does it work in the normal Text and the Java editor?
Comment 2 zhuge CLA 2007-07-10 05:02:06 EDT
(In reply to comment #1)
> Does it work in the normal Text and the Java editor?
> 
Yes. It work in the normal Text and the Java editor. 

Before I use the NetBeans IDE which can be input Chinese characters, but today I use the Eclipse which can NOT be input Chinese characters. 

After Eclipse has startuped, when I new a Text file named README and a  C file named test.c and a java file named home_page.java, I can input Chinese characters in the editor by press CTR+SPACE to activate the input method. However, when I new a Text file named script_function.sql, I can NOT input Chinese charachter. Why?
Comment 3 Dani Megert CLA 2007-07-10 05:05:21 EDT
Because a different editor is connected to your sql file. As a workaround you can use Open With > Text Editor.
Comment 4 zhuge CLA 2007-07-10 05:07:27 EDT
(In reply to comment #1)
> Does it work in the normal Text and the Java editor?
> 
Yes. It work in the normal Text and the Java editor. 

Before I use the NetBeans IDE which can be input Chinese characters, but today I use the Eclipse which can NOT be input Chinese characters. 

After Eclipse has startuped, when I new a Text file named README or a  C file named test.c or a java file named home_page.java, I can input Chinese characters by press CTR+SPACE to activate the input method in the editor . However, when I new a Text file named script_function.sql, I can NOT input Chinese charachter in the editor. Why?
Comment 5 zhuge CLA 2007-07-10 05:36:08 EDT
(In reply to comment #3)
> Because a different editor is connected to your sql file. As a workaround you
> can use Open With > Text Editor.
> 

After I use Open with -> Text Editor, I can input Chinese charachters. But another problem occurs, that is, I can NOT do comment use key, CTR+/ . If I use Open With > Default Editor, I can do comment. Why?
Comment 6 Dani Megert CLA 2007-07-10 05:40:39 EDT
The Text editor does not know about SQL, Java or whatever - it is a Text editor. Most of the things you see in enhanced editors like Java or SQL editor won't be available.
Comment 7 zhuge CLA 2007-07-10 05:50:46 EDT
(In reply to comment #6)
> The Text editor does not know about SQL, Java or whatever - it is a Text
> editor. Most of the things you see in enhanced editors like Java or SQL editor
> won't be available.
> 

Then, in the SQL editor, how can I do to input Chinese characters like in the Text Editor using CTR+SPACE?

Please help me!
Comment 8 Dani Megert CLA 2007-07-10 05:59:22 EDT
You can't out of the box as this seems to be a bug specific to that editor. You could check whether the SQL editor registers some action on Ctrl+Space and hence overrides Chinese IME.
Comment 9 zhuge CLA 2007-07-10 06:18:20 EDT
(In reply to comment #8)
> You can't out of the box as this seems to be a bug specific to that editor. You
> could check whether the SQL editor registers some action on Ctrl+Space and
> hence overrides Chinese IME.
> 

Could you tell me the steps to do that? I don't know how to change the SQL editor's action on CTRL+SPACE and overrides Chinese IME.

Thank you very much.
Comment 10 Dani Megert CLA 2007-07-10 06:27:15 EDT
1. Window > Preference > General > Keys
2. click on the 'Binding' column
3. now scroll down to find 'Ctrl+Space'
4. click 'Remove Binding'
5. click 'OK'

Comment 11 zhuge CLA 2007-07-10 06:51:36 EDT
(In reply to comment #10)
> 1. Window > Preference > General > Keys
> 2. click on the 'Binding' column
> 3. now scroll down to find 'Ctrl+Space'
> 4. click 'Remove Binding'
> 5. click 'OK'
> 

There are many 'Bindings', such as 'Ctrl+Alt+J', 'Ctrl+Backspace', 'Ctr+S', and so on. I find carefully, but I can't find 'Ctrl+Space'.
Comment 12 Dani Megert CLA 2007-07-10 07:20:37 EDT
OK. Then there's something else in that editor that causes this. Sorry, I can't help in that case.
Comment 13 zhuge CLA 2007-07-10 10:43:00 EDT
(In reply to comment #12)
> OK. Then there's something else in that editor that causes this. Sorry, I can't
> help in that case.
> 

So, I think the present Eclipse 3.3 version SDK is not good running on Linux OS. Could you tell me when the next version 4.0 Eclipse SDK release which removes the something else that causes the SQL editor not to be input Chinese characters and can run on Linux OS?

Thank you.

Comment 14 David Williams CLA 2007-07-10 12:45:23 EDT
Moving to "data tools" as I assume they are the ones providing the SQL Editor you mention. If so, they would be the ones to help. 

Thanks for reporting, though, this sounds like a very major bug. 

Comment 15 zhuge CLA 2007-07-10 22:19:54 EDT
(In reply to comment #14)
> Moving to "data tools" as I assume they are the ones providing the SQL Editor
> you mention. If so, they would be the ones to help. 
> 
> Thanks for reporting, though, this sounds like a very major bug. 
> 

Also, Another problem is that the Eclipse always crashes and throwes an error window within which there are the messages:
JVM terminated. Exit code=1
/usr/local/java/jdk1.5.0_09/bin/java
-Xms120m
-Xmx402m
-jar /home/zhuge/doc/ide-eclipse3.3/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/zhuge/doc/ide-eclipse3.3/eclipse/eclipse
-name Eclipse
--launcher.library /home/zhuge/doc/ide-eclipse3.3/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup /home/zhuge/doc/ide-eclipse3.3/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-exitdata 7800b
-clean
-vm /usr/local/java/jdk1.5.0_09/bin/java
-vmargs
-Xms120m
-Xmx402m
-jar /home/zhuge/doc/ide-eclipse3.3/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar 
Comment 16 Dani Megert CLA 2007-07-11 03:37:24 EDT
Please file a separate bug where you explain when it happens and attach the VM dump (is either in your home directory or a sibling of the eclipse executable). This one is for the IME problem.
Comment 17 zhuge CLA 2007-07-11 11:38:57 EDT
(In reply to comment #16)
> Please file a separate bug where you explain when it happens and attach the VM
> dump (is either in your home directory or a sibling of the eclipse executable).
> This one is for the IME problem.
> 

What is the dump file name? I can't find it.

Today I download the 3.2 from the URL, http://europa-mirror1.eclipse.org/eclipse/downloads/, and install it and execute it. It runs better (VM dump does not occurs), but the SQL editor can not be input Chinese character too.
Comment 18 zhuge CLA 2007-07-11 11:48:05 EDT
(In reply to comment #16)
> Please file a separate bug where you explain when it happens and attach the VM
> dump (is either in your home directory or a sibling of the eclipse executable).
> This one is for the IME problem.
> 

No. That's not for the IME problem, I think, because I do NOT press CTRL+SPACE to activate input method.
Comment 19 Dani Megert CLA 2007-07-11 11:51:25 EDT
>Today I download the 3.2 from the URL,
By all means download 3.3.

Comment 20 zhuge CLA 2007-07-11 13:22:16 EDT
(In reply to comment #19)
> >Today I download the 3.2 from the URL,
> By all means download 3.3.
> 

Before yesterday I use NetBeans IDE, yesterday I use Eclipse 3.3 which can NOT be input Chinese characters in the SQL editor. So I suppose Eclipse 3.2 can input Chinese character. As a result, 3.2 is the same as 3.3. Both of 3.3 and 3.2 are NOT input Chinese characters in the SQL editor. Maybe the next version Eclipse 4.0 can do that like NetBeans IDE.
Comment 21 Ren Junyan CLA 2008-03-13 03:11:49 EDT
It is not a bug. Becauese in different editor, different Content Assist keys were reserved. You can check from Edit > Content Assist.
For java file editor, 'Alt+/' are the keys to trigger content assist. But for sql editor, keys are 'Ctrl+space'. That's why you can activate Chinese IME during java editing but not in a sql file editor.
In Windows system, the event of pressing 'Ctrl+space' is consumed by system first, so it can activate Chinese IME in sql editor. In Linux system, you can change the hot keys of Chinese IME activation to avoid the conflict.
Comment 22 Dani Megert CLA 2008-03-13 03:29:54 EDT
WONTFIX is wrong here. Why at all are you using a different command with a different and breaking key binding? Your editor must use the "org.eclipse.ui.edit.text.contentAssist.proposals" command from the platform and everything will work as expected.
Comment 23 Ren Junyan CLA 2008-03-13 04:43:14 EDT
Created attachment 92406 [details]
patch for bug 195946
Comment 24 Ren Junyan CLA 2008-03-13 04:49:00 EDT
Unbound 'Ctrl+space' from Content Assist in sql editor, so that 'Alt+/' can be the default accelerator and Chinese IME can be activated by 'Ctrl+space'.

Please review the patch, thanks!
Comment 25 zhuge CLA 2008-03-13 21:38:19 EDT
(In reply to comment #24)
> Unbound 'Ctrl+space' from Content Assist in sql editor, so that 'Alt+/' can be
> the default accelerator and Chinese IME can be activated by 'Ctrl+space'.
> 
> Please review the patch, thanks!
> 

Yesterday, I downloaded the "Eclipse Classic 3.3.2 - Linux (137 MB)" SDK from http://www.eclipse.org/downloads/ , and run it and it can be input Chinese characters. And I will try to transport doing development to Eclipse from NetBeans. If I might meet some bugs, I will also report them as I reported the 3.3.1 bugs.

Thank you very much

zhuge xiao
Comment 26 Hui Cao CLA 2008-03-22 08:58:42 EDT
Applied the patch. Thanks!
Comment 27 zhuge CLA 2008-03-26 08:45:14 EDT
(In reply to comment #26)
> Applied the patch. Thanks!
> 

The patch was applied.

Thank you very much.


zhuge
Comment 28 Brian Fitzpatrick CLA 2008-07-01 17:39:31 EDT
Closing bugs