Package org.gudy.azureus2.core3.util

Examples of org.gudy.azureus2.core3.util.AERunnable


    } finally {
      plugin_helper_mon.exit();
    }

    if (view_info != null) {
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
          if (uiFunctions != null) {
            uiFunctions.closePluginView(view);
          }
View Full Code Here


  }
 
  public void triggerPluginAddedViewListeners(final IViewInfo viewInfo) {
    final Object[] listeners = pluginAddedViewListener.toArray();
    if (pluginAddedViewListener.size() > 0) {
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          for (int i = 0; i < listeners.length; i++) {
            PluginAddedViewListener l = (PluginAddedViewListener) listeners[i];
            l.pluginViewAdded(viewInfo);
          }
View Full Code Here

      }
     
      pending = true;
    }

    Utils.execSWTThreadLater(0, new AERunnable() {
      public void runSupport() {
        try {
          handleDelayedEvent(event);
        } finally {
          synchronized (lock) {
View Full Code Here

          buffer.removeFirst();
        buffer.add(event);
      }

      if (bRealtime && !bPaused) {
        Utils.execSWTThread(new AERunnable() {
          public void runSupport() {
            refresh();
          }
        });
      }
View Full Code Here

  private void clearConsole() {
    if (display == null || display.isDisposed())
      return;

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        consoleText.setText("");
      }
    });
  }
View Full Code Here

    return LogEvent.LT_INFORMATION;
  }

  public void parameterChanged(String parameterName) {
    if (parameterName.startsWith("Color")) {
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          if (display == null || display.isDisposed())
            return;

          if (colors == null)
View Full Code Here

  public static void
  addPeerManager(
    final PEPeerManager    pm )
  {
    dispatcher.dispatch(
      new AERunnable()
      {
        public void
        runSupport()
        {
          if ( core == null ){
           
            core = AzureusCoreFactory.getSingleton();
           
            speed_manager = core.getSpeedManager();
          }
         
          boolean  is_complete = !pm.hasDownloadablePiece();
         
          PEPeerManagerStats pm_stats = pm.getStats();

          long  up_bytes = pm_stats.getTotalDataBytesSentNoLan() + pm_stats.getTotalProtocolBytesSentNoLan();

          if ( is_complete ){
           
            pm.addRateLimiter( limiter, true );
          }
         
          pm_map.put( pm, new PMState( pm, is_complete, up_bytes ));
                   
          if ( timer == null ){
           
            timer =
              SimpleTimer.addPeriodicEvent(
                "DMRC",
                TIMER_MILLIS,
                new TimerEventPerformer()
                {
                  public void
                  perform(
                    TimerEvent event )
                  {
                    dispatcher.dispatch(
                      new AERunnable()
                      {
                        public void
                        runSupport()
                        {
                          update();
View Full Code Here

  public static void
  removePeerManager(
    final PEPeerManager    pm )
  {
    dispatcher.dispatch(
      new AERunnable()
      {
        public void
        runSupport()
        {
          pm_map.remove( pm );
View Full Code Here

       
        add_file_install_dispatcher = new AsyncDispatcher();
      }
     
      add_file_install_dispatcher.dispatch(
        new AERunnable()
        {
          public void
          runSupport()
          {
            try{
View Full Code Here

      return;
    if(display == null || display.isDisposed() || log == null || paused)
      return;

    display.asyncExec(new AERunnable(){
      public void runSupport() {
        if(log.isDisposed())
          return;
        if ( !log.isVisible()){
          return;
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.core3.util.AERunnable

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.