Examples of IRetrieveFileTransferFactory


Examples of org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory

    assertNotNull(e);
    assertTrue(e instanceof MalformedURLException);
  }

  private IRetrieveFileTransferFactory createRetrieveFactory() {
    return new IRetrieveFileTransferFactory() {

      public IRetrieveFileTransfer newInstance() {
        return new IRetrieveFileTransfer() {

          public void sendRetrieveRequest(IFileID remoteFileID,
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory

      // will occur if fragment is not installed or not on proper execution environment
    } catch (Throwable t) {
      log(new Status(IStatus.ERROR, getDefault().getBundle().getSymbolicName(), "Unexpected Error in Activator.start", t)); //$NON-NLS-1$
    }

    fileTransferServiceRegistration = ctxt.registerService(IRetrieveFileTransferFactory.class.getName(), new IRetrieveFileTransferFactory() {
      public IRetrieveFileTransfer newInstance() {
        return new MultiProtocolRetrieveAdapter();
      }
    }, null);
    this.extensionRegistryTracker = new ServiceTracker(ctxt, IExtensionRegistry.class.getName(), null);
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory

      try {
        String pluginId = configElements[i].getDeclaringExtension().getContributor().getName();
        // Only add the factories if the contributor plugin has not been excluded
        if (!pluginExcluded(pluginId)) {
          // First create factory clazz
          final IRetrieveFileTransferFactory retrieveFactory = (IRetrieveFileTransferFactory) configElements[i].createExecutableExtension(CLASS_ATTR);
          // Get priority for new entry, if optional priority attribute specified
          int priority = getPriority(configElements[i], CONTRIBUTION_WARNING, protocol);
          String contributorName = configElements[i].getDeclaringExtension().getContributor().getName();
          // Now add new ProtocolFactory
          setRetrieveFileTransferFactory(protocol, contributorName, retrieveFactory, priority, uri);
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory

    synchronized (retrieveFileTransferProtocolMap) {
      protocolFactory = (ProtocolFactory) retrieveFileTransferProtocolMap.get(protocol);
    }
    if (protocolFactory == null)
      return null;
    final IRetrieveFileTransferFactory factory = (IRetrieveFileTransferFactory) protocolFactory.getFactory();
    if (factory != null)
      return factory.newInstance();
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.