RSE
Release 3.3

org.eclipse.rse.subsystems.files.core.subsystems
Interface IHostFileToRemoteFileAdapter


public interface IHostFileToRemoteFileAdapter

Provider interface for implementers of RSE IFileService instances, by which they convert their internal service objects into objects suitable for the RSE file subsystem. Must be implemented and returned by overriding the IFileServiceSubSystemConfiguration.getHostFileAdapter() method in the contributed concrete file subsystem configuration.


Method Summary
 AbstractRemoteFile convertToRemoteFile(FileServiceSubSystem ss, IRemoteFileContext context, IRemoteFile parent, IHostFile node)
          Convert a single IHostFile object from the file service into a remote file object.
 AbstractRemoteFile[] convertToRemoteFiles(FileServiceSubSystem ss, IRemoteFileContext context, IRemoteFile parent, IHostFile[] nodes)
          Convert a list of IHostFile objects from the file service into remote file objects.
 

Method Detail

convertToRemoteFiles

AbstractRemoteFile[] convertToRemoteFiles(FileServiceSubSystem ss,
                                          IRemoteFileContext context,
                                          IRemoteFile parent,
                                          IHostFile[] nodes)
Convert a list of IHostFile objects from the file service into remote file objects. Used to return IRemoteFile[] before RSE 3.0, returns AbstractRemoteFile since RSE 3.0.

Parameters:
ss - The file service subsystem to which the remote files belong.
context - The context (connection, subsystem, filter) under which the files have been queried.
parent - The parent IRemoteFile below which the new nodes should appear. Can be null when converting root files.
nodes - IHostFile nodes from the file service
Returns:
an array of converted remote file objects.
Since:
org.eclipse.rse.subsystems.files.core 3.0

convertToRemoteFile

AbstractRemoteFile convertToRemoteFile(FileServiceSubSystem ss,
                                       IRemoteFileContext context,
                                       IRemoteFile parent,
                                       IHostFile node)
Convert a single IHostFile object from the file service into a remote file object. Used to return IRemoteFile before RSE 3.0, returns AbstractRemoteFile since RSE 3.0.

Parameters:
ss - The file service subsystem to which the remote files belong.
context - The context (connection, subsystem, filter) under which the files have been queried.
parent - The parent IRemoteFile below which the new nodes should appear. Can be null when converting root files.
node - IHostFile node from the file service
Returns:
converted remote file object.
Since:
org.eclipse.rse.subsystems.files.core 3.0

RSE
Release 3.3

Copyright (c) IBM Corporation and others 2000, 2011. All Rights Reserved.