Search in sources :

Example 1 with ChangePermissionsDialog

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

the class InternalEditAction method performInternalAction.

// - AbstractViewerAction implementation ---------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------------
/**
 * Opens the internal editor on the specified file.
 * @param file file to edit.
 */
@Override
protected void performInternalAction(AbstractFile file) {
    if (file.isDirectory()) {
        FileSet fileSet = new FileSet();
        fileSet.add(file);
        new ChangePermissionsDialog(mainFrame, fileSet).showDialog();
    } else {
        EditorRegistrar.createEditorFrame(mainFrame, file, getIcon().getImage());
    }
}
Also used : ChangePermissionsDialog(com.mucommander.ui.dialog.file.ChangePermissionsDialog) FileSet(com.mucommander.commons.file.util.FileSet)

Aggregations

FileSet (com.mucommander.commons.file.util.FileSet)1 ChangePermissionsDialog (com.mucommander.ui.dialog.file.ChangePermissionsDialog)1