1
0
Fork 0
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:
David McKnight 2008-01-23 13:13:53 +00:00
parent 877d847b6d
commit 10515e6501
3 changed files with 4 additions and 5 deletions

View file

@ -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;

View file

@ -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;
}
}

View file

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