Package org.gudy.azureus2.plugins.messaging.generic

Examples of org.gudy.azureus2.plugins.messaging.generic.GenericMessageConnection.addListener()


   
    setMultiline(false);
   

    TableContextMenuItem menuReset = addContextMenuItem("TableColumn.menu.date_added.reset");
    menuReset.addListener(new MenuItemListener() {
      public void selected(MenuItem menu, Object target) {
        if (target instanceof TableRowCore) {
          TableRowCore row = (TableRowCore) target;
          Object dataSource = row.getDataSource(true);
          if (dataSource instanceof DownloadManager) {
View Full Code Here


   
    UpdateManager update_manager = azureus_core.getPluginManager().getDefaultPluginInterface().getUpdateManager();
   
    UpdateCheckInstance  checker = update_manager.createUpdateCheckInstance();
   
    checker.addListener(
      new UpdateCheckInstanceListener()
      {
        public void
        cancelled(
          UpdateCheckInstance    instance )
View Full Code Here

   
    UpdateManager update_manager = pi.getUpdateManager();
   
    final List<UpdateCheckInstance>  l_instances = new ArrayList<UpdateCheckInstance>();
   
    update_manager.addListener(
      new UpdateManagerListener()
      {
        public void
        checkInstanceCreated(
          UpdateCheckInstance  instance )
View Full Code Here

  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();
   
    final FeatureManager fm = pi.getUtilities().getFeatureManager();
         
    fm.addListener(
      new FeatureManager.FeatureManagerListener()
      {
        public void
        licenceAdded(
          Licence  licence )
View Full Code Here

   * @since 3.0.0.7
   */
  private boolean nextUpdate() {
    if (iterDownloaders.hasNext()) {
      ResourceDownloader downloader = (ResourceDownloader) iterDownloaders.next();
      downloader.addListener(this);
      downloader.asyncDownload();
      return true;
    }
    return false;
  }
View Full Code Here

  }
 
  private void nextUpdate() {
    if(iterDownloaders.hasNext()) {
      ResourceDownloader downloader = (ResourceDownloader) iterDownloaders.next();
      downloader.addListener(this);
      downloader.asyncDownload();
    } else {
      switchToRestart();     
    }
  }
View Full Code Here

                  new String[]{ "Uninstall: " + plugin_dir},
                  pi.getPluginVersion(),
                  rd,
                  pi.getPluginState().isUnloadable()?Update.RESTART_REQUIRED_NO:Update.RESTART_REQUIRED_YES );
                 
                rd.addListener(
                    new ResourceDownloaderAdapter()
                    {
                      public boolean
                      completed(
                        ResourceDownloader  downloader,
View Full Code Here

   */
  private void downloadFiltersAsync(URL url) {
    ResourceDownloader rd = ResourceDownloaderFactoryImpl.getSingleton().create(
        url);
    // old dl exists, load old one while new one downloads async
    rd.addListener(new ResourceDownloaderAdapter() {
      // @see org.gudy.azureus2.plugins.utils.resourcedownloader.ResourceDownloaderAdapter#reportPercentComplete(org.gudy.azureus2.plugins.utils.resourcedownloader.ResourceDownloader, int)
      public void reportPercentComplete(ResourceDownloader downloader,
          int percentage) {
      }

View Full Code Here

   
      URL sl_url = new URL( SECONDARY_LOOKUP + "magnetLookup?hash=" + Base32.encode( hash ) + (args.length()==0?"":("&args=" + UrlUtils.encode( args ))));
     
      ResourceDownloader rd = rdf.create( sl_url );
     
      rd.addListener(
        new ResourceDownloaderAdapter()
        {
          public boolean
          completed(
            ResourceDownloader  downloader,
View Full Code Here

              Update.RESTART_REQUIRED_YES
            );
       
        update.setDescriptionURL(versionGetter.getInfoURL());
       
        swtDownloader.addListener(new ResourceDownloaderAdapter() {
           
            public boolean
            completed(
              ResourceDownloader downloader,
              InputStream data)
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.