Package org.eclipse.ecf.filetransfer

Examples of org.eclipse.ecf.filetransfer.IRemoteFileSystemBrowserContainerAdapter


      url = directoryOrFileID.getURL();
    } catch (final MalformedURLException e) {
      throw new RemoteFileSystemException(Messages.AbstractRetrieveFileTransfer_MalformedURLException);
    }

    IRemoteFileSystemBrowserContainerAdapter fileSystemBrowser = null;
    fileSystemBrowser = Activator.getDefault().getBrowseFileTransfer(url.getProtocol());

    if (fileSystemBrowser == null) {
      if (url.getProtocol().equalsIgnoreCase("file")) { //$NON-NLS-1$
        LocalFileSystemBrowser fsb = new LocalFileSystemBrowser(directoryOrFileID, listener);
        return fsb.sendBrowseRequest();
      }
      URLFileSystemBrowser ufsb = new URLFileSystemBrowser(directoryOrFileID, listener, url, connectContext, proxy);
      return ufsb.sendBrowseRequest();
    }

    // Set connect context
    fileSystemBrowser.setConnectContextForAuthentication(connectContext);
    // Set Proxy
    fileSystemBrowser.setProxy(proxy);

    return fileSystemBrowser.sendBrowseRequest(directoryOrFileID, listener);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.filetransfer.IRemoteFileSystemBrowserContainerAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.