Package org.gudy.azureus2.plugins

Examples of org.gudy.azureus2.plugins.PluginInterface


    }

    public void
    openMainView(String sViewID, UISWTViewEventListener l,Object dataSource)
    {
      PluginInterface pi = pi_ref.get();
     
      delegate.openMainView( pi, sViewID, l, dataSource );
    }
View Full Code Here


    }

    public void
    openMainView(String sViewID, UISWTViewEventListener l,Object dataSource, boolean setfocus)
    {
      PluginInterface pi = pi_ref.get();
     
      delegate.openMainView( pi, sViewID, l, dataSource, setfocus );
    }
View Full Code Here

      spinnerImage.setVisible(false);
    }
   
    setWarning();

    PluginInterface pi = PluginInitializer.getDefaultInterface();
    UIManager uim = pi.getUIManager();
   
    final MenuManager menuManager = uim.getMenuManager();
   
    MenuItem menuItem;
   
View Full Code Here

              actionComplete(
                Object result )
              {
                if ( result instanceof Boolean ){
                 
                  PluginInterface pi = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByID( "mlab" );

                  IPCInterface callback =
                    new IPCInterface()
                    {
                      public Object
                      invoke(
                        String     methodName,
                        Object[]  params )
                      {
                        try{
                          if ( methodName.equals( "results" )){
                                                    
                            Map<String,Object>   results = (Map<String,Object>)params[0];
                           
                            Long  up_rate = (Long)results.get( "up" );
                           
                            if ( up_rate != null ){
                             
                              final int u = up_rate.intValue();
                             
                              if ( u > 0 ){
                               
                                Utils.execSWTThread(
                                  new Runnable()
                                  {
                                    public void
                                    run()
                                    {
                                      updateUp( u, false );
                                    }               
                                  });
                              }
                            }
                          }
                         
                          return( null );
                         
                        }finally{
                         
                          enableTest();
                        }
                      }
                   
                      public boolean
                      canInvoke(
                        String methodName,
                        Object[] params )
                      {
                        return( true );
                      }
                    };
                 
                  try{
                    pi.getIPC().invoke(
                      "runTest",
                      new Object[]{ new HashMap<String,Object>(), callback, false });
                   
                  }catch( Throwable e ){
                   
View Full Code Here

       
        PluginInterface[] pis = plugin_initializer.getPlugins();
       
        for (int i=0;i<pis.length;i++){
         
          PluginInterface pi = pis[i];
         
          if ( pi.getPlugin().getClass().getName().equals( plugin_class )){
           
            target_use_accessor = pi.getPlugin();
           
            break;
          }
        }
      }
View Full Code Here

      String page_url_to_use = site_prefix + "plugin_details.php?plugin=" + details.getId() + "&" + base_url_params;
     
      page_url_to_use = addEPIDS( page_url_to_use );
     
      try{
        PluginInterface pi = PluginInitializer.getDefaultInterface().getPluginManager().getPluginInterfaceByID( details.getId(), false );
 
        if ( pi != null ){
         
          String existing_version = pi.getPluginVersion();
       
          if ( existing_version != null ){
           
            page_url_to_use += "&ver_" + details.getId() + "=" + UrlUtils.encode( existing_version );
          }
View Full Code Here

              "/debugSender.start",
              true
            });
        StringBuffer postData = new StringBuffer();

        PluginInterface pi = AzureusCoreFactory.getSingleton().getPluginManager().getDefaultPluginInterface();
        FeatureManager featman = pi.getUtilities().getFeatureManager();

        if (featman != null) {
          FeatureDetails[] featureDetails = featman.getFeatureDetails("dvdburn");
          if (featureDetails != null && featureDetails.length > 0) {
            // Could walk through details and find the most valid..
View Full Code Here

  }

  protected static void
  hookDownloadAddition()
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();

    DownloadManager  dm = pi.getDownloadManager();
   
      // need to get in early to ensure property present on initial announce
   
    dm.addDownloadWillBeAddedListener(
      new DownloadWillBeAddedListener()
View Full Code Here

      }
    });
  }

  protected static void addHeaderMenu() {
    PluginInterface pi = PluginInitializer.getDefaultInterface();
    UIManager uim = pi.getUIManager();
    MenuManager menuManager = uim.getMenuManager();
    MenuItem menuItem;

    menuItem = menuManager.addMenuItem("sidebar."
        + MultipleDocumentInterface.SIDEBAR_HEADER_TRANSFERS,
View Full Code Here

    });
    return infoLibraryUn;
  }

  private static void addMenuUnwatched(String id) {
    PluginInterface pi = PluginInitializer.getDefaultInterface();
    UIManager uim = pi.getUIManager();
    MenuManager menuManager = uim.getMenuManager();

    MenuItem menuItem = menuManager.addMenuItem("sidebar." + id,
        "v3.activity.button.watchall");
    menuItem.addListener(new MenuItemListener() {
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.PluginInterface

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.