• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Understanding IME Input mode

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using Eclipse, however this is a general question about setting IME input mode.

We want to enable the user to enter far east Character sets into our Eclipse based editor (SWT). Getting the shell of the IEditorSite, we can set the type of input mode like this:
site.getShell().setImeInputMode(SWT.DBCS);

However, when I stepped into this call, it basically does nothing for locales that are not Double Byte:

public void setImeInputMode (int mode) {
checkWidget ();
if (!OS.IsDBLocale) return;
...

I don't follow why it does this. I have a global IME Input bar on my desktop that allows me to enter various characters from different character sets, even though my locale is not DB. Why would the code limit setting the IME input mode to just DB locales?

Next I attempted to change my default locale via the control panel to a far east language, which worked fine, but it still did not consider it a DB locale (I tried Korean, Japanese and Chinese). Would I have to have one of the far east OS's installed for it to work?

Finally (yes, alot of questions ), In our program we create alot of different editors. Is there anywhere we can set the IME Input mode to DBCS just once and have them all inherit that attribute?

Thanks!
 
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic