Package org.gudy.azureus2.plugins.ui

Examples of org.gudy.azureus2.plugins.ui.UIManager


      for (int i=0; i < items.size(); i++){       
      
      ShareItem  item = (ShareItem)items.get(i);
       
        try{
        Torrent  t = item.getTorrent();
                  
        Download  download = dm.getDownload( t );
       
        if ( download == null ){
                   
View Full Code Here


      for (int i=0;i<items.size();i++){
       
        ShareItem  item = (ShareItem)items.get(i);
       
          try{
            Torrent  t = item.getTorrent();
           
            TrackerTorrent  tracker_torrent = tracker.getTorrent( t );
           
            Download  download = dm.getDownload( t );
           
View Full Code Here

 
    PluginInterface pi = PluginInitializer.getDefaultInterface();
     
    org.gudy.azureus2.plugins.download.DownloadManager  dm     = pi.getDownloadManager();
     
    Tracker      tracker = pi.getTracker();
     

      for (int i=0;i<items.size();i++){
       
        ShareItem  item = (ShareItem)items.get(i);
       
          try{
            Torrent  t = item.getTorrent();
           
            TrackerTorrent  tracker_torrent = tracker.getTorrent( t );
           
            Download  download = dm.getDownload( t );
           
            if ( tracker_torrent == null || download == null ){
                             
View Full Code Here

        ShareItem  item = (ShareItem)items.get(i);
       
          try{
            Torrent  t = item.getTorrent();
           
            TrackerTorrent  tracker_torrent = tracker.getTorrent( t );
           
            Download  download = dm.getDownload( t );
           
            if ( tracker_torrent == null || download == null ){
                             
              continue;
            }
           
            int  dl_state = download.getState();
           
            if (   dl_state == Download.ST_ERROR ){
             
            }else if ( dl_state != Download.ST_STOPPED ){
             
              if ( do_stop ){
               
                try{
                  download.stop();
                }catch( Throwable e ){
                }
               
                try{
                  tracker_torrent.stop();
                }catch( Throwable e ){
                }
              }
             
            }else{
             
              if ( !do_stop ){
               
                try{
                  download.restart();
                }catch( Throwable e ){
                }
               
                try{
                  tracker_torrent.start();
                }catch( Throwable e ){
                }
              }
            }
          }catch( Throwable e ){
View Full Code Here

          TrackerWebPageRequestImpl  request = new TrackerWebPageRequestImpl( tracker, TrackerWCHelper.this, external_request );
          TrackerWebPageResponseImpl  reply   = new TrackerWebPageResponseImpl( request );
     
          for (int i=0;i<generators.size();i++){
     
            TrackerWebPageGenerator  generator;
     
            try{
              this_mon.enter();
     
              if ( i >= generators.size()){
     
                break;
              }
     
              generator = (TrackerWebPageGenerator)generators.get(i);
     
            }finally{
     
              this_mon.exit();
            }
     
            if ( generator.generate( request, reply )){
     
              reply.complete();
     
              return( true );
            }
View Full Code Here

              MessageText.getString(up_menu
                  ? "MyTorrentsView.dialog.setNumber.upload"
                  : "MyTorrentsView.dialog.setNumber.download")
            });

        entryWindow.prompt(new UIInputReceiverListener() {
          public void UIInputReceiverClosed(UIInputReceiver entryWindow) {
            if (!entryWindow.hasSubmittedInput()) {
              return;
            }
            String sReturn = entryWindow.getSubmittedInput();
View Full Code Here

       
        String app_name = SystemProperties.getApplicationName();
       
        if ( !( app_name.equals( "Vuze" ) || app_name.equals( "Azureus" ))){
         
          UIManager ui_manager = StaticUtilities.getUIManager( 120*1000 );
         
          String details = MessageText.getString(
              "update.fail.app.changed",
              new String[]{ app_name });
         
          ui_manager.showMessageBox(
              "update.fail.app.changed.title",
              "!" + details + "!",
              UIManagerEvent.MT_OK );
         
          return;
View Full Code Here

 

  public void addView(final PluginView view, final boolean bAutoOpen) {
    try {
     
      UIManager ui_manager = PluginInitializer.getDefaultInterface().getUIManager();

      ui_manager.addUIListener(new UIManagerListener() {
        public void UIAttached(UIInstance instance) {
          if (instance instanceof UISWTInstance) {
            if (view instanceof PluginViewWrapper) {

              // legacy support for RSSImport plugin
View Full Code Here

      console.printconsolehelp();
      created_console = true;
    }

    PluginInterface pi = UIConst.getAzureusCore().getPluginManager().getDefaultPluginInterface();
    UIManager  ui_manager = pi.getUIManager();
   
    ui_manager.addUIEventListener( this );
   
    try{
      ui_manager.attachUI( this );
    }catch( UIException e ){
      e.printStackTrace();
    }
    TorrentDownloaderFactory.initManager(UIConst.getGlobalManager(), true, true, COConfigurationManager.getStringParameter("Default save path") );
View Full Code Here

  }
 
  private boolean
  informUpdateRequired()
  {
    UIManager ui_manager = StaticUtilities.getUIManager( 120*1000 );

    long res = ui_manager.showMessageBox(
        "update.now.title",
        "update.now.desc",
        UIManagerEvent.MT_OK | UIManagerEvent.MT_CANCEL );
   
    return( res == UIManagerEvent.MT_OK );
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.ui.UIManager

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.