for (DataFlavor dataFlavor : supportedFlavors) {
// Check to see whether the handler will accept the drop,
// if not just go into the next in the list
DataFlavorHandlerSPI handler = getDataFlavorHandler(dataFlavor);
if (handler.accept(event, dataFlavor) == true) {
handler.handleImport(event, dataFlavor, listener);
return;
}
}
// if we got here, the data flavor was not supported