• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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!
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic