Search in sources :

Example 1 with CombineFilesDialog

use of com.mucommander.ui.dialog.file.CombineFilesDialog in project mucommander by mucommander.

the class CombineFilesAction method performAction.

@Override
public void performAction(FileSet files) {
    // Filter out files that are not regular files
    FileFilter filter = new AttributeFileFilter(FileAttribute.FILE);
    filter.filter(files);
    if (files.size() == 0)
        return;
    AbstractFile destFolder = mainFrame.getInactivePanel().getCurrentFolder();
    new CombineFilesDialog(mainFrame, files, destFolder).showDialog();
}
Also used : AbstractFile(com.mucommander.commons.file.AbstractFile) CombineFilesDialog(com.mucommander.ui.dialog.file.CombineFilesDialog) AttributeFileFilter(com.mucommander.commons.file.filter.AttributeFileFilter) AttributeFileFilter(com.mucommander.commons.file.filter.AttributeFileFilter) FileFilter(com.mucommander.commons.file.filter.FileFilter)

Aggregations

AbstractFile (com.mucommander.commons.file.AbstractFile)1 AttributeFileFilter (com.mucommander.commons.file.filter.AttributeFileFilter)1 FileFilter (com.mucommander.commons.file.filter.FileFilter)1 CombineFilesDialog (com.mucommander.ui.dialog.file.CombineFilesDialog)1