From b79400f4a949eb940dda0099e81ad5b2bcb86429 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 7 Jun 2007 16:33:17 +0000 Subject: [PATCH] [173518] updated copright --- .../files/ui/propertypages/SystemFilePropertyPage.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/propertypages/SystemFilePropertyPage.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/propertypages/SystemFilePropertyPage.java index 95f94211fb9..8ee6bb61d09 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/propertypages/SystemFilePropertyPage.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/propertypages/SystemFilePropertyPage.java @@ -16,6 +16,7 @@ * Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry * David Dykstal (IBM) - [160776] format file size according to client system conventions and locale + * David McKnight (IBM) - [173518] [refresh] Read only changes are not shown in RSE until the parent folder is refreshed ********************************************************************************/ package org.eclipse.rse.internal.files.ui.propertypages; @@ -498,7 +499,14 @@ public class SystemFilePropertyPage extends SystemBasePropertyPage // If the file service updates the underlying object, then there is no need for a remote refresh if (oldCanWrite == updatedValue) { - sr.fireEvent(new SystemResourceChangeEvent(remoteFile,ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE, null)); + if (remoteFile.isDirectory()) + { + sr.fireEvent(new SystemResourceChangeEvent(remoteFile.getParentRemoteFile(),ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE, null)); + } + else + { + sr.fireEvent(new SystemResourceChangeEvent(remoteFile,ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE, null)); + } } else {