< prev index next >
modules/javafx.web/src/main/java/com/sun/javafx/webkit/InputMethodClientImpl.java
Print this page
@@ -29,19 +29,17 @@
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
-import java.util.logging.Level;
-import java.util.logging.Logger;
+import com.sun.javafx.logging.PlatformLogger;
import com.sun.javafx.scene.input.ExtendedInputMethodRequests;
import com.sun.webkit.Invoker;
import javafx.geometry.Point2D;
import javafx.scene.input.InputMethodEvent;
import javafx.scene.input.InputMethodHighlight;
-import javafx.scene.input.InputMethodRequests;
import javafx.scene.input.InputMethodTextRun;
import javafx.scene.web.WebView;
import com.sun.webkit.InputMethodClient;
import com.sun.webkit.WebPage;
@@ -49,12 +47,12 @@
import com.sun.webkit.graphics.WCPoint;
public final class InputMethodClientImpl
implements InputMethodClient, ExtendedInputMethodRequests
{
- private static final Logger log =
- Logger.getLogger(InputMethodClientImpl.class.getName());
+ private static final PlatformLogger log =
+ PlatformLogger.getLogger(InputMethodClientImpl.class.getName());
private final WeakReference<WebView> wvRef;
private final WebPage webPage;
// the state of the last setInputMethodState() call.
private boolean state;
@@ -136,13 +134,13 @@
Invoker.getInvoker().invokeOnEventThread(f);
Point2D result = null;
try {
result = f.get();
} catch (ExecutionException ex) {
- log.log(Level.SEVERE, "InputMethodClientImpl.getTextLocation " + ex);
+ log.severe("InputMethodClientImpl.getTextLocation " + ex);
} catch (InterruptedException ex) {
- log.log(Level.SEVERE, "InputMethodClientImpl.getTextLocation InterruptedException" + ex);
+ log.severe("InputMethodClientImpl.getTextLocation InterruptedException" + ex);
}
return result;
}
public int getLocationOffset(int x, int y) {
@@ -154,13 +152,13 @@
Invoker.getInvoker().invokeOnEventThread(f);
int location = 0;
try {
location = f.get();
} catch (ExecutionException ex) {
- log.log(Level.SEVERE, "InputMethodClientImpl.getLocationOffset " + ex);
+ log.severe("InputMethodClientImpl.getLocationOffset " + ex);
} catch (InterruptedException ex) {
- log.log(Level.SEVERE, "InputMethodClientImpl.getTextLocation InterruptedException" + ex);
+ log.severe("InputMethodClientImpl.getTextLocation InterruptedException" + ex);
}
return location;
}
public void cancelLatestCommittedText() {
< prev index next >