mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 00:35:49 +02:00
[209593] changed clone to duplicate
This commit is contained in:
parent
877d847b6d
commit
10515e6501
3 changed files with 4 additions and 5 deletions
|
@ -351,7 +351,7 @@ public class SystemFilePermissionsPropertyPage extends SystemBasePropertyPage {
|
|||
if ((capabilities & IFilePermissionsService.FS_CAN_SET_PERMISSIONS) != 0){
|
||||
try
|
||||
{
|
||||
IHostFilePermissions newPermissions = _permissions.clone(_permissions);
|
||||
IHostFilePermissions newPermissions = _permissions.duplicate();
|
||||
|
||||
if (_permissions.getPermission(IHostFilePermissions.PERM_USER_READ) != _userRead.getSelection()){
|
||||
changed = true;
|
||||
|
|
|
@ -155,8 +155,8 @@ public class HostFilePermissions implements
|
|||
_user = user;
|
||||
}
|
||||
|
||||
public IHostFilePermissions clone(IHostFilePermissions toClone) {
|
||||
IHostFilePermissions clone = new HostFilePermissions(toClone.getPermissionBits(), toClone.getUserOwner(), toClone.getGroupOwner());
|
||||
public IHostFilePermissions duplicate(){
|
||||
IHostFilePermissions clone = new HostFilePermissions(getPermissionBits(), getUserOwner(), getGroupOwner());
|
||||
return clone;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,8 +146,7 @@ public interface IHostFilePermissions {
|
|||
|
||||
/**
|
||||
* Create a duplicate of a set of permissions
|
||||
* @param toClone
|
||||
* @return the duplicate
|
||||
*/
|
||||
public IHostFilePermissions clone(IHostFilePermissions toClone);
|
||||
public IHostFilePermissions duplicate();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue