jdk/src/solaris/classes/sun/awt/X11InputMethod.java
changeset 3938 ef327bd847c0
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3934:487e1aa949c4 3938:ef327bd847c0
    55 
    55 
    56 import java.io.File;
    56 import java.io.File;
    57 import java.io.FileReader;
    57 import java.io.FileReader;
    58 import java.io.BufferedReader;
    58 import java.io.BufferedReader;
    59 import java.io.IOException;
    59 import java.io.IOException;
    60 import java.util.logging.*;
    60 import sun.util.logging.PlatformLogger;
    61 import java.util.StringTokenizer;
    61 import java.util.StringTokenizer;
    62 import java.util.regex.Pattern;
    62 import java.util.regex.Pattern;
    63 
    63 
    64 
    64 
    65 /**
    65 /**
    66  * Input Method Adapter for XIM
    66  * Input Method Adapter for XIM
    67  *
    67  *
    68  * @author JavaSoft International
    68  * @author JavaSoft International
    69  */
    69  */
    70 public abstract class X11InputMethod extends InputMethodAdapter {
    70 public abstract class X11InputMethod extends InputMethodAdapter {
    71     private static final Logger log = Logger.getLogger("sun.awt.X11InputMethod");
    71     private static final PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11InputMethod");
    72     /*
    72     /*
    73      * The following XIM* values must be the same as those defined in
    73      * The following XIM* values must be the same as those defined in
    74      * Xlib.h
    74      * Xlib.h
    75      */
    75      */
    76     private static final int XIMReverse = (1<<0);
    76     private static final int XIMReverse = (1<<0);
   322         clientComponentWindow = getClientComponentWindow();
   322         clientComponentWindow = getClientComponentWindow();
   323         if (clientComponentWindow == null)
   323         if (clientComponentWindow == null)
   324             return;
   324             return;
   325 
   325 
   326         if (lastXICFocussedComponent != null){
   326         if (lastXICFocussedComponent != null){
   327             if (log.isLoggable(Level.FINE)) log.log(Level.FINE, "XICFocused {0}, AWTFocused {1}", new Object[] {
   327             if (log.isLoggable(PlatformLogger.FINE)) log.fine("XICFocused {0}, AWTFocused {1}",
   328                 lastXICFocussedComponent, awtFocussedComponent});
   328                                                               lastXICFocussedComponent, awtFocussedComponent);
   329         }
   329         }
   330 
   330 
   331         if (pData == 0) {
   331         if (pData == 0) {
   332             if (!createXIC()) {
   332             if (!createXIC()) {
   333                 return;
   333                 return;