Package org.gudy.azureus2.plugins.update

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


   
    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

  {
    checkMandatory();
    checkRestartNeeded();
    TableItem[] items = table.getSelection();
    if(items.length == 0) return;
    Update update = (Update) items[0].getData();
   
    String desciptionURL = update.getDesciptionURL();
    if (desciptionURL != null && browser != null) {
      browser.setUrl(desciptionURL);
      browser.setVisible(true);
      link_area.getComponent().setVisible(false);
    } else {
      if (browser != null) {
        browser.setVisible(false);
      }
      link_area.getComponent().setVisible(true);
   
      String[] descriptions = update.getDescription();
     
      link_area.reset();
     
      link_area.setRelativeURLBase( update.getRelativeURLBase());
     
      for(int i = 0 ; i < descriptions.length ; i++) {
 
        link_area.addLine( descriptions[i] );
      }
View Full Code Here

 
 
  private void checkMandatory() {
    TableItem[] items = table.getItems();
    for(int i = 0 ; i < items.length ; i++) {
      Update update = (Update) items[i].getData();
      if(update.isMandatory()) items[i].setChecked(true);
    }
  }
View Full Code Here

    restartRequired = false;
    boolean  restartMaybeRequired = false;
    TableItem[] items = table.getItems();
    for(int i = 0 ; i < items.length ; i++) {
      if(! items[i].getChecked()) continue;
      Update update = (Update) items[i].getData();
      int required = update.getRestartRequired();
      if((required == Update.RESTART_REQUIRED_MAYBE)){
        restartMaybeRequired = true;
      }else if ( required == Update.RESTART_REQUIRED_YES ){
        restartRequired = true;
      }
View Full Code Here

    downloaders = new ArrayList();
   
    for(int i = 0 ; i < items.length ; i++) {
      if(! items[i].getChecked()) continue;
     
      Update update = (Update) items[i].getData();
      ResourceDownloader[] rds = update.getDownloaders();
      for(int j = 0 ; j < rds.length ; j++) {
        downloaders.add(rds[j]);       
        try {
          totalDownloadSize += rds[j].getSize();
        } catch (Exception e) {
View Full Code Here

        {
          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] );
            }
View Full Code Here

TOP

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

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.