Examples of IFileTransferProtocolToFactoryMapper


Examples of org.eclipse.ecf.provider.filetransfer.IFileTransferProtocolToFactoryMapper

  public static IFileTransferProtocolToFactoryMapper getProtocolToFactoryMapper() {
    return Activator.getDefault().getProtocolToFactoryMapper();
  }

  public static boolean removeRetrieveProvider() {
    IFileTransferProtocolToFactoryMapper mapper = getProtocolToFactoryMapper();
    String existingProviderId = mapper.getRetrieveFileTransferFactoryId("http");
    if (existingProviderId == null) {
      // Just warn
      System.out.println("WARNING: No non-null retrieve provider found for protocol http...no remove will occur");
      return true;
    }
    return mapper.removeRetrieveFileTransferFactory(existingProviderId);
  }
View Full Code Here

Examples of org.eclipse.ecf.provider.filetransfer.IFileTransferProtocolToFactoryMapper

    }
    return mapper.removeRetrieveFileTransferFactory(existingProviderId);
  }
 
  public static boolean removeBrowseProvider() {
    IFileTransferProtocolToFactoryMapper mapper = getProtocolToFactoryMapper();
    String existingProviderId = mapper.getBrowseFileTransferFactoryId("http");
    if (existingProviderId == null) {
      // Just warn
      System.out.println("WARNING: No non-null browse provider found for protocol http...no remove will occur");
      return true;
    }
    return mapper.removeBrowseFileTransferFactory(existingProviderId);
  }
View Full Code Here

Examples of org.eclipse.ecf.provider.filetransfer.IFileTransferProtocolToFactoryMapper

    }
    return mapper.removeBrowseFileTransferFactory(existingProviderId);
  }

  public static boolean removeSendProvider() {
    IFileTransferProtocolToFactoryMapper mapper = getProtocolToFactoryMapper();
    String existingProviderId = mapper.getSendFileTransferFactoryId("http");
    if (existingProviderId == null) {
      // Just warn
      System.out.println("WARNING: No non-null send provider found for protocol http...no remove will occur");
      return true;
    }
    return mapper.removeSendFileTransferFactory(existingProviderId);
  }
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.