Search in sources :

Example 1 with LocalCopyDialog

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

the class LocalCopyAction method performAction.

@Override
public void performAction() {
    FolderPanel activePanel = mainFrame.getActivePanel();
    AbstractFile selectedFile = activePanel.getFileTable().getSelectedFile(false, true);
    // Display local copy dialog only if a file other than '..' is currently selected
    if (selectedFile != null) {
        new LocalCopyDialog(mainFrame, new FileSet(activePanel.getCurrentFolder(), selectedFile)).showDialog();
    }
}
Also used : AbstractFile(com.mucommander.commons.file.AbstractFile) FileSet(com.mucommander.commons.file.util.FileSet) LocalCopyDialog(com.mucommander.ui.dialog.file.LocalCopyDialog) FolderPanel(com.mucommander.ui.main.FolderPanel)

Aggregations

AbstractFile (com.mucommander.commons.file.AbstractFile)1 FileSet (com.mucommander.commons.file.util.FileSet)1 LocalCopyDialog (com.mucommander.ui.dialog.file.LocalCopyDialog)1 FolderPanel (com.mucommander.ui.main.FolderPanel)1