Package org.gudy.azureus2.plugins.update

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


   
    int userMode = COConfigurationManager.getIntParameter("User Mode");
    int maxUsermode = 0;
    try
    {
      ConfigSection sect = sections.get(section);
      if (sect instanceof UISWTConfigSection)
      {
        maxUsermode = ((UISWTConfigSection) sect).maxUserMode();
      }
    } catch (Error e)
View Full Code Here


   
    for (int i=0;i<items.length;i++){
     
      TreeItem  item = items[i];
             
      ConfigSection section = (ConfigSection)item.getData("ConfigSectionSWT");
       
      if ( section != null && section.getClass() == config_section_class ){
         
        tree.setSelection( new TreeItem[]{ item });
       
        showSection( item );
       
View Full Code Here

            && (!(currentContent[0] instanceof ISelectedVuzeFileContent))
            && currentContent[0].getDownloadManager() == null
            && (currentContent[0].getHash() != null || currentContent[0].getDownloadInfo() != null));
 
      if (tv != null) {
        TableColumn tc = tv.getTableColumn(RankItem.COLUMN_ID);
        if (tc != null && !tc.isVisible()) {
          mapNewToolbarStates.put("up", false);
          mapNewToolbarStates.put("down", false);
        }
      }
     
View Full Code Here

    start();
  }

  private void start() {
    for (int i = 0; i < updates.length; i++) {
      Update update = updates[i];
      ResourceDownloader[] rds = update.getDownloaders();
      for (int j = 0; j < rds.length; j++) {
        ResourceDownloader rd = rds[j];
        downloaders.add(rd);
      }
    }
View Full Code Here

  private void allDownloadsComplete() {
    boolean bRequiresRestart = false;
    boolean bHadMandatoryUpdates = false;
   
    for (int i = 0; i < updates.length; i++) {
      Update update = updates[i];
        // updates with no downloaders exist for admin purposes only
      if ( update.getDownloaders().length > 0){
        if (update.getRestartRequired() != Update.RESTART_REQUIRED_NO) {
          bRequiresRestart = true;
        }
        if ( update.isMandatory()){
          bHadMandatoryUpdates = true;
        }
      }
    }
View Full Code Here

      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

  }
 
  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

  }
 
  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

          handleEvent(Event event)
          {
            try{
              PluginInterface pi = AzureusCoreFactory.getSingleton().getPluginManager().getDefaultPluginInterface();
             
              UpdateInstaller installer = pi.getUpdateManager().createInstaller();
           
              installer.addMoveAction(
                "C:\\temp\\file1", "C:\\temp\\file2" );
           
              installer.installNow(
                new UpdateInstallerListener()
                {
                  public void
                  reportProgress(
                    String    str )
View Full Code Here

           
              installer.addMoveAction(
                "C:\\temp\\file1", "C:\\temp\\file2" );
           
              installer.installNow(
                new UpdateInstallerListener()
                {
                  public void
                  reportProgress(
                    String    str )
                  {
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.update.UpdateCheckInstance

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.