Package com.dubture.getcomposer.packages

Examples of com.dubture.getcomposer.packages.AsyncPackageDownloader


    this.factory = factory;
    this.target = target;
    this.composerPackage = composerPackage;
   
    // load package with versions
    AsyncPackageDownloader downloader = new AsyncPackagistDownloader();
    downloader.addPackageListener(new PackageListenerInterface() {
      public void packageLoaded(final RepositoryPackage repositoryPackage) {
        dataArrived = true;
        pkg = repositoryPackage;
       
        // get major and minor
        Versions versions = pkg.getVersions();
       
        majorVersion = versions.getRecentMajor();
        minorVersion = versions.getRecentMinor(majorVersion);
       
        if (!updatingTarget) {
          updateUI();
        }
      }
     
      public void errorOccured(Exception e) {
        e.printStackTrace();
      }

      public void aborted(String url) {}
    });
    downloader.loadPackage(name);
   
    create(parent, factory);
  }
View Full Code Here

TOP

Related Classes of com.dubture.getcomposer.packages.AsyncPackageDownloader

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.