1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 04:25:21 +02:00

[231209] [api][breaking] IRemoteFile.getSystemConnection() should be changed to IRemoteFile.getHost()

This commit is contained in:
David McKnight 2008-05-21 20:36:50 +00:00
parent 0c2055de47
commit 22dca8fe78
3 changed files with 7 additions and 5 deletions

View file

@ -12,7 +12,7 @@
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * 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; package org.eclipse.rse.subsystems.files.core.servicesubsystem;
@ -47,7 +47,7 @@ public abstract class AbstractRemoteFile extends RemoteFile implements IRemoteFi
return _subSystem; return _subSystem;
} }
public IHost getSystemConnection() public IHost getHost()
{ {
return _subSystem.getHost(); return _subSystem.getHost();
} }

View file

@ -13,6 +13,7 @@
* *
* Contributors: * Contributors:
* David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files * 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; 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. * 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, * Return the parent remote file object expanded to get this object,
* or <code>null</nul> if no such parent exists. * or <code>null</code> if no such parent exists.
* *
* @return the parent remote file object or <code>null</code>. * @return the parent remote file object or <code>null</code>.
*/ */

View file

@ -19,6 +19,7 @@
* David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files * 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) - [220020][api][breaking] SystemFileTransferModeRegistry should be internal
* Martin Oberhuber (Wind River) - [219975] Fix implementations of clone() * 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; 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. * Return the connection this remote file is from.
*/ */
public IHost getSystemConnection() public IHost getHost()
{ {
IRemoteFileSubSystem ss = _context.getParentRemoteFileSubSystem(); IRemoteFileSubSystem ss = _context.getParentRemoteFileSubSystem();
if (ss == null) if (ss == null)