Package org.eclipse.ecf.filetransfer.service

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


      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 ISendFileTransferFactory clazz = (ISendFileTransferFactory) configElements[i].createExecutableExtension(CLASS_ATTR);
          // Get priority for new entry, if optional priority attribute specified
          int priority = getPriority(configElements[i], CONTRIBUTION_WARNING, protocol);
          setSendFileTransferFactory(protocol, pluginId, clazz, priority, uri);
        } else {
          Activator.getDefault().log(new Status(IStatus.WARNING, PLUGIN_ID, IStatus.WARNING, "Plugin " + pluginId + " excluded from contributing send factory", null)); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here


    synchronized (sendFileTransferProtocolMap) {
      protocolFactory = (ProtocolFactory) sendFileTransferProtocolMap.get(protocol);
    }
    if (protocolFactory == null)
      return null;
    final ISendFileTransferFactory factory = (ISendFileTransferFactory) protocolFactory.getFactory();
    if (factory != null)
      return factory.newInstance();
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.filetransfer.service.ISendFileTransferFactory

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.