Package org.syncany.plugins.transfer

Examples of org.syncany.plugins.transfer.TransferPluginOptionCallback


  private void askNormalPluginSettings(TransferSettings settings, TransferPluginOption option, Map<String, String> knownPluginSettings, String nestPrefix)
      throws StorageException, InstantiationException, IllegalAccessException {

    Class<? extends TransferPluginOptionCallback> optionCallbackClass = option.getCallback();
    TransferPluginOptionCallback optionCallback = optionCallbackClass != null ? optionCallbackClass.newInstance() : null;
    Class<? extends TransferPluginOptionConverter> optionConverterClass = option.getConverter();

    if (!isInteractive && !knownPluginSettings.containsKey(nestPrefix + option.getName())) {
      throw new IllegalArgumentException("Missing plugin option (" + nestPrefix + option.getName() + ") in non-interactive mode.");
    }
View Full Code Here


   */
  private void askGenericChildPluginSettings(TransferSettings settings, TransferPluginOption option, Map<String, String> knownPluginSettings, String nestPrefix)
      throws StorageException, IllegalAccessException, InstantiationException {

    Class<? extends TransferPluginOptionCallback> optionCallbackClass = option.getCallback();
    TransferPluginOptionCallback optionCallback = optionCallbackClass != null ? optionCallbackClass.newInstance() : null;

    if (isInteractive) {
      callAndPrintPreQueryCallback(optionCallback);

      out.println();
View Full Code Here

   */
  private void askConreteChildPluginSettings(TransferSettings settings, NestedTransferPluginOption option, Map<String, String> knownPluginSettings,
      String nestPrefix) throws StorageException, IllegalAccessException, InstantiationException {

    Class<? extends TransferPluginOptionCallback> optionCallbackClass = option.getCallback();
    TransferPluginOptionCallback optionCallback = optionCallbackClass != null ? optionCallbackClass.newInstance() : null;

    if (isInteractive) {
      callAndPrintPreQueryCallback(optionCallback);

      out.println();
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.TransferPluginOptionCallback

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.