mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 14:45:57 +02:00
[234038] Force refresh IRemoteFile after changing permissions
This commit is contained in:
parent
00814b79ad
commit
9036664bd6
1 changed files with 89 additions and 86 deletions
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (c) 2008 IBM Corporation. All rights reserved.
|
* Copyright (c) 2008 IBM Corporation and others. All rights reserved.
|
||||||
* This program and the accompanying materials are made available under the terms
|
* This program and the accompanying materials are made available under the terms
|
||||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files
|
* David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files
|
||||||
* David McKnight (IBM) - [209703] apply encoding and updating remote file when apply on property page
|
* David McKnight (IBM) - [209703] apply encoding and updating remote file when apply on property page
|
||||||
|
* Martin Oberhuber (Wind River) - [234038] Force refresh IRemoteFile after changing permissions
|
||||||
* ********************************************************************************/
|
* ********************************************************************************/
|
||||||
package org.eclipse.rse.internal.files.ui.propertypages;
|
package org.eclipse.rse.internal.files.ui.propertypages;
|
||||||
|
|
||||||
|
@ -405,6 +406,8 @@ public class SystemFilePermissionsPropertyPage extends SystemBasePropertyPage {
|
||||||
|
|
||||||
|
|
||||||
if (changed){
|
if (changed){
|
||||||
|
//mark file stale even if an exception is thrown later, to ensure proper re-get
|
||||||
|
remoteFile.markStale(true, true);
|
||||||
// assuming permissions are good
|
// assuming permissions are good
|
||||||
service.setFilePermissions(remoteFile.getHostFile(), newPermissions, new NullProgressMonitor());
|
service.setFilePermissions(remoteFile.getHostFile(), newPermissions, new NullProgressMonitor());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue