Package org.gudy.azureus2.core3.util

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


  public static void asyncStopDelete(final DownloadManager dm,
      final int stateAfterStopped, final boolean bDeleteTorrent,
      final boolean bDeleteData, final AERunnable deleteFailed) {

   
  async.dispatch(new AERunnable() {
      public void runSupport() {

        try {
          // I would move the FLAG_DO_NOT_DELETE_DATA_ON_REMOVE even deeper
          // but I fear what could possibly go wrong.
View Full Code Here


    public static void
  asyncStop(
    final DownloadManager  dm,
    final int         stateAfterStopped )
    {
      async.dispatch(new AERunnable() {
        public void
      runSupport()
        {
          dm.stopIt( stateAfterStopped, false, false );
        }
View Full Code Here

    // have a DownloadManager and thus an AzureusCore
    GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
    gmListener = new GlobalManagerAdapter() {
      public void downloadManagerRemoved(DownloadManager dm) {
        if (dm.equals(manager)) {
          Utils.execSWTThread(new AERunnable() {
            public void runSupport() {
              delete();
            }
          });
        }
View Full Code Here

          folder.getShell().setCursor(null);
        }
      }
    });
   
    Utils.execSWTThreadLater(0, new AERunnable() {
      public void runSupport() {
        views[0].initialize(folder);
        folder.getItem(0).setControl(views[0].getComposite());
        views[0].refresh();
        views[0].getComposite().layout(true);
View Full Code Here

    if(folder == null || folder.isDisposed())
      return;   
    Display display = folder.getDisplay();
    if(display == null || display.isDisposed())
      return;
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
        if (uiFunctions != null) {
          uiFunctions.refreshIconBar();
        }
View Full Code Here

    resource = operation.getOperationType()==AzureusCoreOperation.OP_FILE_MOVE?"progress.window.msg.filemove":"progress.window.msg.progress";

    new DelayedEvent(
        "ProgWin",
        operation.getOperationType()==AzureusCoreOperation.OP_FILE_MOVE?1000:10,
        new AERunnable()
        {
          public void
          runSupport()
          {             
            if ( !task_complete ){
View Full Code Here

    }else{
     
      new DelayedEvent(
          "ProgWin",
          _delay_millis,
          new AERunnable()
          {
            public void
            runSupport()
            {               
              if ( !task_complete ){
View Full Code Here

            public void paintControl(PaintEvent e) {
              e.gc.drawImage(spinImages[curSpinIndex ], 0, 0);
            }
          });
         
          Utils.execSWTThreadLater(100, new AERunnable() {
            public void runSupport() {
              if (canvas == null || canvas.isDisposed()) {
                return;
              }
View Full Code Here

  public void setLayoutData(Object layoutData) {
    inputField.setLayoutData(layoutData);
  }
 
  public void setValue(final String value) {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        if (inputField == null || inputField.isDisposed()
            || inputField.getText().equals(value)) {
          return;
        }
View Full Code Here

  public void setLayoutData(Object layoutData) {
    inputField.setLayoutData(layoutData);
  }
 
  public void setValue(final String value) {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        if (inputField == null || inputField.isDisposed()
            || inputField.getText().equals(value)) {
          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.