Package org.syncany.operations.plugin

Examples of org.syncany.operations.plugin.PluginInfo


    if (operationResult.getResultCode() == PluginResultCode.OK) {
      List<String[]> tableValues = new ArrayList<String[]>();
      tableValues.add(new String[] { "Id", "Name", "Local Version", "Type", "Remote Version" });

      for (ExtendedPluginInfo extPluginInfo : operationResult.getPluginList()) {
        PluginInfo pluginInfo = (extPluginInfo.isInstalled()) ? extPluginInfo.getLocalPluginInfo() : extPluginInfo.getRemotePluginInfo();

        String localVersionStr = (extPluginInfo.isInstalled()) ? extPluginInfo.getLocalPluginInfo().getPluginVersion() : "";
        String installedStr = extPluginInfo.isInstalled() ? (extPluginInfo.canUninstall() ? "User" : "Global") : "";
        String remoteVersionStr = (extPluginInfo.isRemoteAvailable()) ? extPluginInfo.getRemotePluginInfo().getPluginVersion() : "";

        tableValues.add(new String[] { pluginInfo.getPluginId(), pluginInfo.getPluginName(), localVersionStr, installedStr, remoteVersionStr });
      }

      printTable(tableValues, "No plugins found.");
    }
    else {
View Full Code Here

TOP

Related Classes of org.syncany.operations.plugin.PluginInfo

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.