* refinements for FILE+FOLDER mode (Swing FileChooser only)

This commit is contained in:
Reinhard Pointner 2014-07-30 06:15:01 +00:00
parent 660772dd2a
commit c47a3ac45a
3 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
package net.filebot.ui.analyze;
import static java.util.Arrays.*;
import static net.filebot.ui.NotificationLogging.*;
import static net.filebot.util.FileUtilities.*;
@ -97,7 +96,7 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy<TreeNo
@Override
public List<String> getFileFilterExtensions() {
return asList("*");
return null;
}
}

View File

@ -170,7 +170,7 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<C
@Override
public String getFileFilterDescription() {
return "Files, Folders and SFV Files";
return "Folders and SFV Files";
}
@Override

View File

@ -64,7 +64,7 @@ public class LoadAction extends AbstractAction {
protected ExtensionFileFilter getFileFilter(TransferablePolicy transferablePolicy) {
if (transferablePolicy instanceof FileTransferablePolicy) {
final FileTransferablePolicy ftp = ((FileTransferablePolicy) transferablePolicy);
if (ftp.getFileFilterDescription() != null) {
if (ftp.getFileFilterDescription() != null && ftp.getFileFilterExtensions() != null) {
return new ExtensionFileFilter(ftp.getFileFilterExtensions()) {
@Override
public String toString() {