1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 08:45:44 +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){ if ((capabilities & IFilePermissionsService.FS_CAN_SET_PERMISSIONS) != 0){
try try
{ {
IHostFilePermissions newPermissions = _permissions.clone(_permissions); IHostFilePermissions newPermissions = _permissions.duplicate();
if (_permissions.getPermission(IHostFilePermissions.PERM_USER_READ) != _userRead.getSelection()){ if (_permissions.getPermission(IHostFilePermissions.PERM_USER_READ) != _userRead.getSelection()){
changed = true; changed = true;

View file

@ -155,8 +155,8 @@ public class HostFilePermissions implements
_user = user; _user = user;
} }
public IHostFilePermissions clone(IHostFilePermissions toClone) { public IHostFilePermissions duplicate(){
IHostFilePermissions clone = new HostFilePermissions(toClone.getPermissionBits(), toClone.getUserOwner(), toClone.getGroupOwner()); IHostFilePermissions clone = new HostFilePermissions(getPermissionBits(), getUserOwner(), getGroupOwner());
return clone; return clone;
} }
} }

View file

@ -146,8 +146,7 @@ public interface IHostFilePermissions {
/** /**
* Create a duplicate of a set of permissions * Create a duplicate of a set of permissions
* @param toClone
* @return the duplicate * @return the duplicate
*/ */
public IHostFilePermissions clone(IHostFilePermissions toClone); public IHostFilePermissions duplicate();
} }