Examples of AzureusCoreRunningListener


Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

 
  data = new GridData(GridData.FILL_HORIZONTAL);
  data.heightHint = 100;
  link_area.getComponent().setLayoutData(data);

  CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD, new AzureusCoreRunningListener() {
    public void azureusCoreRunning(AzureusCore core) {
      final StandardPlugin plugins[];
      try {
        plugins = ((InstallPluginWizard)wizard).getStandardPlugins(core);
       
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

      this.reportCurrentTask(MessageText.getString("wizard.filesaved"));
    wizard.switchToClose();
   
    if ( _wizard.autoOpen ){
      CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD,
            new AzureusCoreRunningListener() {
              public void azureusCoreRunning(AzureusCore core) {
                boolean default_start_stopped = COConfigurationManager.getBooleanParameter("Default Start Torrents Stopped");

                byte[] hash = null;
                try {
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

    });
    }

  public static void asyncStartAll() {
    CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD,
        new AzureusCoreRunningListener() {
          public void azureusCoreRunning(AzureusCore core) {
            core.getGlobalManager().startAllDownloads();
          }
        });
  }
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

        });
  }

  public static void asyncStopAll() {
    CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD,
        new AzureusCoreRunningListener() {
          public void azureusCoreRunning(AzureusCore core) {
            core.getGlobalManager().stopAllDownloads();
          }
        });
  }
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

        });
  }

  public static void asyncPause() {
    CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD,
        new AzureusCoreRunningListener() {
          public void azureusCoreRunning(AzureusCore core) {
            core.getGlobalManager().pauseDownloads();
          }
        });
  }
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

        });
  }

  public static void asyncResume() {
    CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD,
        new AzureusCoreRunningListener() {
          public void azureusCoreRunning(AzureusCore core) {
            core.getGlobalManager().resumeDownloads();
          }
        });
  }
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

  long interval = 0;

  protected boolean enableTooltip;

  public SystemTraySWT() {
    AzureusCoreFactory.addCoreRunningListener(new AzureusCoreRunningListener() {
      public void azureusCoreRunning(AzureusCore core) {
        SystemTraySWT.core = core;
        gm = core.getGlobalManager();
      }
    });
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

        if (datasource == null) {
          final MdiEntry fEntry = entry;
          final String dmHash = MapUtils.getMapString(autoOpenInfo, "dm", null);
          if (dmHash != null) {
            AzureusCoreFactory.addCoreRunningListener(new AzureusCoreRunningListener() {
              public void azureusCoreRunning(AzureusCore core) {
                GlobalManager gm = core.getGlobalManager();
                HashWrapper hw = new HashWrapper(Base32.decode(dmHash));
                DownloadManager dm = gm.getDownloadManager(hw);
                if (dm != null) {
                  fEntry.setDatasource(dm);
                }
              }
            });
          } else {
            final List listHashes = MapUtils.getMapList(autoOpenInfo, "dms",
                null);
            if (listHashes != null) {
              AzureusCoreFactory.addCoreRunningListener(new AzureusCoreRunningListener() {
                public void azureusCoreRunning(AzureusCore core) {
                  List<DownloadManager> listDMS = new ArrayList<DownloadManager>(
                      1);
                  GlobalManager gm = core.getGlobalManager();
                  for (Object oDM : listHashes) {
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

     
  protected void
  startTest()
  {
    CoreWaiterSWT.waitForCore(TriggerInThread.NEW_THREAD,
        new AzureusCoreRunningListener() {
      public void azureusCoreRunning(AzureusCore core) {
        startTestSupport(core);
      }
    });
  }
View Full Code Here

Examples of com.aelitis.azureus.core.AzureusCoreRunningListener

    super.skinObjectCreated(skinObject, params);

    creatMDI();

    // building plugin views needs UISWTInstance, which needs core.
    AzureusCoreFactory.addCoreRunningListener(new AzureusCoreRunningListener() {
      public void azureusCoreRunning(AzureusCore core) {
        Utils.execSWTThread(new AERunnable() {
          public void runSupport() {
            setupPluginViews();
          }
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.