mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 15:45:25 +02:00
[209593] changed duplcate to use Cloneable and override Object.clone()
This commit is contained in:
parent
c8a217ab4f
commit
f2fcb656c9
2 changed files with 7 additions and 2 deletions
|
@ -24,7 +24,6 @@ import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
|||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.services.files.HostFilePermissions;
|
||||
import org.eclipse.rse.services.files.IFilePermissionsService;
|
||||
import org.eclipse.rse.services.files.IHostFilePermissions;
|
||||
import org.eclipse.rse.services.files.PendingHostFilePermissions;
|
||||
|
@ -352,7 +351,7 @@ public class SystemFilePermissionsPropertyPage extends SystemBasePropertyPage {
|
|||
if ((capabilities & IFilePermissionsService.FS_CAN_SET_PERMISSIONS) != 0){
|
||||
try
|
||||
{
|
||||
IHostFilePermissions newPermissions = (IHostFilePermissions)((HostFilePermissions)_permissions).clone();
|
||||
IHostFilePermissions newPermissions = (IHostFilePermissions)_permissions.clone();
|
||||
|
||||
if (_permissions.getPermission(IHostFilePermissions.PERM_USER_READ) != _userRead.getSelection()){
|
||||
changed = true;
|
||||
|
|
|
@ -144,4 +144,10 @@ public interface IHostFilePermissions extends Cloneable {
|
|||
*/
|
||||
public void setGroupOwner(String group);
|
||||
|
||||
/**
|
||||
* Overriding Object.clone()
|
||||
* @return the cloned object
|
||||
* @throws CloneNotSupportedException
|
||||
*/
|
||||
public Object clone() throws CloneNotSupportedException;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue