From 6f647bdd9cfdb471752d83a91c45b630c10bd755 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 11 Jul 2007 17:41:22 +0000 Subject: [PATCH] [187130] New Folder/File, Move and Rename should not be available for read-only files. --- .../rse/files/ui/resources/SystemEditableRemoteFile.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java index e42436883a1..a0fab560607 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java @@ -18,6 +18,8 @@ * Martin Oberhuber (Wind River) - [186128][refactoring] Move IProgressMonitor last in public base classes * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry * Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core + * David McKnight (IBM) - [187130] New Folder/File, Move and Rename should be available for read-only folders + * ********************************************************************************/ package org.eclipse.rse.files.ui.resources; @@ -921,7 +923,9 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP public String getActualHostFor(String remotePath) { String hostname = subsystem.getHost().getHostName(); - if (subsystem != null && subsystem.getHost().getSystemType().isLocal()) + if (subsystem != null + //DKM && subsystem.getHost().getSystemType().isLocal() + ) { String result = SystemRemoteEditManager.getInstance().getActualHostFor(hostname, remotePath); if (!result.equals(hostname))