// Allow 'Move to trash' option only if:
// - the current platform has a trash
// - the base folder is not an archive
// - the base folder of the to-be-deleted files is not a trash folder or one of its children
// - the base folder can be moved to the trash (the eligibility conditions should be the same as the files to-be-deleted)
AbstractTrash trash = DesktopManager.getTrash();
AbstractFile baseFolder = files.getBaseFolder();
if(trash!=null && !baseFolder.isArchive() && !trash.isTrashFile(baseFolder) && trash.canMoveToTrash(baseFolder)) {
moveToTrash = !deletePermanently;
moveToTrashCheckBox = new JCheckBox(Translator.get("delete_dialog.move_to_trash.option"), moveToTrash);
moveToTrashCheckBox.addItemListener(this);
}