Examples of UpdateCheckInstance


Examples of org.gudy.azureus2.plugins.update.UpdateCheckInstance

      pi.getPluginState().setDisabled( true );
    }
   
    UpdateManager update_manager = azureus_core.getPluginManager().getDefaultPluginInterface().getUpdateManager();
   
    UpdateCheckInstance  checker = update_manager.createUpdateCheckInstance();
   
    checker.addListener(
      new UpdateCheckInstanceListener()
      {
        public void
        cancelled(
          UpdateCheckInstance    instance )
        {
         
        }
       
        public void
        complete(
          UpdateCheckInstance    instance )
        {
          Update[]   updates = instance.getUpdates();
         
          for (int i=0;i<updates.length;i++){
           
            Update  update = updates[i];
                       
            out.println( "Update available for '" + update.getName() + "', new version = " + update.getNewVersion());
                       
            String[]  descs = update.getDescription();
           
            for (int j=0;j<descs.length;j++){
             
              out.println( "\t" + descs[j] );
            }
          }
        }
      });
   
    checker.start();
   
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.update.UpdateCheckInstance

  }
 
  public void
  cancel()
  {
    UpdateCheckInstance to_cancel = null;
   
    synchronized( this ){
     
      if ( completed ){
       
        return;
      }
     
      cancelled = true;
     
      to_cancel = instance;
    }
   
    if ( to_cancel != null ){
     
      to_cancel.cancel();
    }
   
    action_listener.actionComplete( new Exception( "Cancelled" ));
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.update.UpdateCheckInstance

  }
 
  public void
  cancel()
  {
    UpdateCheckInstance to_cancel = null;
   
    synchronized( this ){
     
      cancelled = true;
     
      to_cancel = instance;
    }
   
    if ( to_cancel != null ){
     
      to_cancel.cancel();
    }
  }
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.