// change the FolderPanel's current folder to the dropped file/folder :
// - If the file is a directory, the current folder is changed to that directory
// - For any other file kind (archive, regular file...), current folder is changed to the file's parent folder and the file is selected
// If more than one file is dropped, only the first one is used
if(changeFolderOnlyMode || currentDropAction==DnDConstants.ACTION_LINK) {
AbstractFile file = droppedFiles.elementAt(0);
// If file is a directory, change current folder to that directory
if(file.isDirectory())
folderPanel.tryChangeCurrentFolder(file);
// For any other file kind (archive, regular file...), change directory to the file's parent folder