jdk/src/solaris/classes/sun/awt/X11/XDnDDragSourceProtocol.java
changeset 3938 ef327bd847c0
parent 2802 d05a9dcc8296
child 5506 202f599c92aa
equal deleted inserted replaced
3934:487e1aa949c4 3938:ef327bd847c0
    30 import java.awt.dnd.DnDConstants;
    30 import java.awt.dnd.DnDConstants;
    31 import java.awt.dnd.InvalidDnDOperationException;
    31 import java.awt.dnd.InvalidDnDOperationException;
    32 
    32 
    33 import java.util.Map;
    33 import java.util.Map;
    34 
    34 
    35 import java.util.logging.*;
    35 import sun.util.logging.PlatformLogger;
    36 
    36 
    37 import sun.misc.Unsafe;
    37 import sun.misc.Unsafe;
    38 
    38 
    39 /**
    39 /**
    40  * XDragSourceProtocol implementation for XDnD protocol.
    40  * XDragSourceProtocol implementation for XDnD protocol.
    41  *
    41  *
    42  * @since 1.5
    42  * @since 1.5
    43  */
    43  */
    44 class XDnDDragSourceProtocol extends XDragSourceProtocol {
    44 class XDnDDragSourceProtocol extends XDragSourceProtocol {
    45     private static final Logger logger =
    45     private static final PlatformLogger logger =
    46         Logger.getLogger("sun.awt.X11.xembed.xdnd.XDnDDragSourceProtocol");
    46         PlatformLogger.getLogger("sun.awt.X11.xembed.xdnd.XDnDDragSourceProtocol");
    47 
    47 
    48     private static final Unsafe unsafe = XlibWrapper.unsafe;
    48     private static final Unsafe unsafe = XlibWrapper.unsafe;
    49 
    49 
    50     protected XDnDDragSourceProtocol(XDragSourceProtocolListener listener) {
    50     protected XDnDDragSourceProtocol(XDragSourceProtocolListener listener) {
    51         super(listener);
    51         super(listener);
   393             // process it here.
   393             // process it here.
   394             if (xclient.get_window() == sourceWindow) {
   394             if (xclient.get_window() == sourceWindow) {
   395                 return false;
   395                 return false;
   396             }
   396             }
   397 
   397 
   398             if (logger.isLoggable(Level.FINEST)) {
   398             if (logger.isLoggable(PlatformLogger.FINEST)) {
   399                 logger.finest("        sourceWindow=" + sourceWindow +
   399                 logger.finest("        sourceWindow=" + sourceWindow +
   400                               " get_window=" + xclient.get_window() +
   400                               " get_window=" + xclient.get_window() +
   401                               " xclient=" + xclient);
   401                               " xclient=" + xclient);
   402             }
   402             }
   403             xclient.set_data(0, xclient.get_window());
   403             xclient.set_data(0, xclient.get_window());