Community
Participate
Working Groups
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!
Does it work in the normal Text and the Java editor?
(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?
Because a different editor is connected to your sql file. As a workaround you can use Open With > Text Editor.
(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?
(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?
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.
(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!
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.
(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.
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'
(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'.
OK. Then there's something else in that editor that causes this. Sorry, I can't help in that case.
(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.
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.
(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
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.
(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.
(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.
>Today I download the 3.2 from the URL, By all means download 3.3.
(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.
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.
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.
Created attachment 92406 [details] patch for bug 195946
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!
(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
Applied the patch. Thanks!
(In reply to comment #26) > Applied the patch. Thanks! > The patch was applied. Thank you very much. zhuge
Closing bugs