From 22dca8fe787e148833f8b0caf03931f2568f9819 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 21 May 2008 20:36:50 +0000 Subject: [PATCH] [231209] [api][breaking] IRemoteFile.getSystemConnection() should be changed to IRemoteFile.getHost() --- .../files/core/servicesubsystem/AbstractRemoteFile.java | 4 ++-- .../rse/subsystems/files/core/subsystems/IRemoteFile.java | 5 +++-- .../rse/subsystems/files/core/subsystems/RemoteFile.java | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java index 1a1f6a6939f..952ad04e0ac 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java @@ -12,7 +12,7 @@ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * * Contributors: - * {Name} (company) - description of contribution. + * David McKnight (IBM) - [231209] [api][breaking] IRemoteFile.getSystemConnection() should be changed to IRemoteFile.getHost() *******************************************************************************/ package org.eclipse.rse.subsystems.files.core.servicesubsystem; @@ -47,7 +47,7 @@ public abstract class AbstractRemoteFile extends RemoteFile implements IRemoteFi return _subSystem; } - public IHost getSystemConnection() + public IHost getHost() { return _subSystem.getHost(); } diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java index 7c7b7245b62..f9b2b3a9234 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java @@ -13,6 +13,7 @@ * * Contributors: * David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files + * David McKnight (IBM) - [231209] [api][breaking] IRemoteFile.getSystemConnection() should be changed to IRemoteFile.getHost() *******************************************************************************/ package org.eclipse.rse.subsystems.files.core.subsystems; @@ -99,11 +100,11 @@ public interface IRemoteFile extends IRemoteContainer, IRemotePropertyHolder, IS /** * Return the connection this remote file is from. */ - public IHost getSystemConnection(); + public IHost getHost(); /** * Return the parent remote file object expanded to get this object, - * or null if no such parent exists. + * or null if no such parent exists. * * @return the parent remote file object or null. */ diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java index b91cdf79220..fccc5e7817c 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java @@ -19,6 +19,7 @@ * David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files * Martin Oberhuber (Wind River) - [220020][api][breaking] SystemFileTransferModeRegistry should be internal * Martin Oberhuber (Wind River) - [219975] Fix implementations of clone() + * David McKnight (IBM) - [231209] [api][breaking] IRemoteFile.getSystemConnection() should be changed to IRemoteFile.getHost() *******************************************************************************/ package org.eclipse.rse.subsystems.files.core.subsystems; @@ -335,7 +336,7 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable /** * Return the connection this remote file is from. */ - public IHost getSystemConnection() + public IHost getHost() { IRemoteFileSubSystem ss = _context.getParentRemoteFileSubSystem(); if (ss == null)