use of org.netxms.ui.eclipse.datacollection.dialogs.FilePermissionDialog in project netxms by netxms.
the class FileDeliveryPolicyEditor method changePermissions.
/**
* Change file permissions
*/
private void changePermissions() {
IStructuredSelection selection = fileTree.getStructuredSelection();
if (selection.size() != 1)
return;
PathElement element = (PathElement) selection.getFirstElement();
FilePermissionDialog dlg = new FilePermissionDialog(getShell(), element.getPermissions(), element.getOwner(), element.getOwnerGroup());
if (dlg.open() != Window.OK)
return;
element.setPermissions(dlg.getPermissions());
element.setOwner(dlg.getOwner());
element.setOwnerGroup(dlg.getGroup());
fileTree.update(element, null);
fireModifyListeners();
}
Aggregations