1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 14:15:50 +02:00

[234038] Force refresh IRemoteFile after changing permissions

This commit is contained in:
Martin Oberhuber 2008-05-26 21:49:59 +00:00
parent 00814b79ad
commit 9036664bd6

View file

@ -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
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@ -11,6 +11,7 @@
* Contributors:
* 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
* Martin Oberhuber (Wind River) - [234038] Force refresh IRemoteFile after changing permissions
* ********************************************************************************/
package org.eclipse.rse.internal.files.ui.propertypages;
@ -405,6 +406,8 @@ public class SystemFilePermissionsPropertyPage extends SystemBasePropertyPage {
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
service.setFilePermissions(remoteFile.getHostFile(), newPermissions, new NullProgressMonitor());