예제 #1
0
 private boolean testFlavor(DataFlavor inFlavor, Transferable t) {
   if (inFlavor != null) {
     if (t.isDataFlavorSupported(inFlavor)) {
       JConfig.log().logVerboseDebug("Accepting(2): " + inFlavor.getMimeType());
       return true;
     }
   }
   return false;
 }
예제 #2
0
 private boolean testFlavor(DataFlavor inFlavor, DropTargetDragEvent t) {
   if (inFlavor != null) {
     if (t.isDataFlavorSupported(inFlavor)) {
       /*
        * I think this has been debugged enough.  This gets annoying.
        */
       JConfig.log().logVerboseDebug("Accepting(1): " + inFlavor.getMimeType());
       return true;
     }
   }
   return false;
 }