mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 23:35:48 +02:00
[187130] New Folder/File, Move and Rename should not be available for read-only files.
This commit is contained in:
parent
b8d975aeac
commit
6f647bdd9c
1 changed files with 5 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
||||||
* Martin Oberhuber (Wind River) - [186128][refactoring] Move IProgressMonitor last in public base classes
|
* 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) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
* 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;
|
package org.eclipse.rse.files.ui.resources;
|
||||||
|
@ -921,7 +923,9 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP
|
||||||
public String getActualHostFor(String remotePath)
|
public String getActualHostFor(String remotePath)
|
||||||
{
|
{
|
||||||
String hostname = subsystem.getHost().getHostName();
|
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);
|
String result = SystemRemoteEditManager.getInstance().getActualHostFor(hostname, remotePath);
|
||||||
if (!result.equals(hostname))
|
if (!result.equals(hostname))
|
||||||
|
|
Loading…
Add table
Reference in a new issue