Examples of PluginInstallExternalEvent


Examples of org.syncany.operations.daemon.messages.PluginInstallExternalEvent

      throw new Exception("Plugin with ID '" + pluginId + "' not found");
    }

    checkPluginCompatibility(pluginInfo);
   
    eventBus.post(new PluginInstallExternalEvent(pluginInfo.getDownloadUrl()));
   
    File tempPluginJarFile = downloadPluginJar(pluginInfo.getDownloadUrl());
    String expectedChecksum = pluginInfo.getSha256sum();
    String actualChecksum = calculateChecksum(tempPluginJarFile);
View Full Code Here

Examples of org.syncany.operations.daemon.messages.PluginInstallExternalEvent

    byte[] actualChecksum = FileUtil.createChecksum(tempPluginJarFile, "SHA256");
    return StringUtil.toHex(actualChecksum);
  }

  private PluginOperationResult executeInstallFromLocalFile(File pluginJarFile) throws Exception {
    eventBus.post(new PluginInstallExternalEvent(pluginJarFile.getAbsolutePath()));
   
    PluginInfo pluginInfo = readPluginInfoFromJar(pluginJarFile);

    checkPluginNotInstalled(pluginInfo.getPluginId());
    checkPluginCompatibility(pluginInfo);
View Full Code Here

Examples of org.syncany.operations.daemon.messages.PluginInstallExternalEvent

    return result;
  }

  private PluginOperationResult executeInstallFromUrl(String downloadJarUrl) throws Exception {
    eventBus.post(new PluginInstallExternalEvent(downloadJarUrl));
   
    File tempPluginJarFile = downloadPluginJar(downloadJarUrl);
    PluginInfo pluginInfo = readPluginInfoFromJar(tempPluginJarFile);

    checkPluginNotInstalled(pluginInfo.getPluginId());
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.