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());
}
}
Aggregations