Package org.gudy.azureus2.core3.util

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


    });
  }
 
  public String open() {
    if(display == null || display.isDisposed()) return null;   
    Utils.execSWTThread(new AERunnable() {   
      public void
      runSupport()
      {
        if(display == null || display.isDisposed()) {
          return;   
View Full Code Here


      if (true == isAutoRemove && false == progressReport.isActive()) {
        if (null != panel && false == panel.isDisposed()) {
          ProgressReportingManager.getInstance().remove(
              panel.getProgressReporter());

          Utils.execSWTThread(new AERunnable() {
            public void runSupport() {
              panel.dispose();
            }
          });
        }
View Full Code Here

    this.table = table;
    this.tv = _tv;
    COConfigurationManager.addAndFireParameterListener("Table.extendedErase",
        new ParameterListener() {
          public void parameterChanged(String parameterName) {
            Utils.execSWTThread(new AERunnable() {
              public void runSupport() {
                drawExtended = COConfigurationManager.getBooleanParameter("Table.extendedErase");
                if (!first) {
                  Rectangle bounds = tv.getTableOrTreeSWT().getBounds();
                  tv.getTableOrTreeSWT().redraw(bounds.x, bounds.y, bounds.width, bounds.height, true);
View Full Code Here

          return;

        // Must dispose in an asyncExec, otherwise SWT.Selection doesn't
        // get fired (async workaround provided by Eclipse Bug #87678)

        e.widget.getDisplay().asyncExec(new AERunnable() {
          public void runSupport() {
            if (bShown || menu.isDisposed())
              return;
            MenuItem[] items = menu.getItems();
            for (int i = 0; i < items.length; i++) {
View Full Code Here

    else if (newDataSource instanceof Object[])
      file = (DiskManagerFileInfo) ((Object[]) newDataSource)[0];
    else
      file = (DiskManagerFileInfo) newDataSource;

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

        refreshInfoCanvasQueued = true;

          // wrap in asyncexec because sc.setMinWidth (called later) doesn't work
          // too well inside a resize (the canvas won't size isn't always updated)

        Utils.execSWTThreadLater(0, new AERunnable() {
          public void runSupport() {
            if (img != null) {
              int iOldColCount = img.getBounds().width / BLOCK_SIZE;
              int iNewColCount = fileInfoCanvas.getClientArea().width / BLOCK_SIZE;
              if (iOldColCount != iNewColCount)
View Full Code Here

    final LocaleUtilDecoderCandidate[] candidatesToChoose = (LocaleUtilDecoderCandidate[]) choosableCandidates.toArray(new LocaleUtilDecoderCandidate[choosableCandidates.size()]);
    final LocaleUtilDecoderCandidate[] selected_candidate = {null};
       
    // Run Synchronously, since we want the results
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        try{
          showChoosableEncodingWindow(Utils.findAnyShell(),
              candidatesToChoose,selected_candidate);
         
View Full Code Here

      });
     
      } catch(final Exception e) {
       
        Debug.printStackTrace(e);
        wizard.getDisplay().asyncExec(new AERunnable() {
            public void runSupport() {
              link_area.addLine( Debug.getNestedExceptionMessage(e));
            }
        });
       
        return;
      }
     
      wizard.getDisplay().asyncExec(new AERunnable() {
        public void runSupport() {
        
          lblStatus.setText( ((InstallPluginWizard)wizard).getListTitleText());
         
          List  selected_plugins = ((InstallPluginWizard)wizard).getPluginList();
View Full Code Here

       
       
        AEThread detailsLoader = new AEThread("Detail Loader") {
          public void runSupport() {          
           final String description = HTMLUtils.convertListToString(HTMLUtils.convertHTMLToText(plugin.getDescription(),""));
           wizard.getDisplay().asyncExec(new AERunnable() {
            public void runSupport() {
              if(pluginList == null || pluginList.isDisposed() || pluginList.getSelectionCount() ==0)
                return;
              if(pluginList.getSelection()[0] != selected_item)
                return;
View Full Code Here

      if (dm.getStats().getShareRatio() >= 0
          && dm.getStats().getShareRatio() < 1000
          && COConfigurationManager.getBooleanParameter("Alert on close", false)) {
        if (!Utils.isThisThreadSWT()) {
          Utils.execSWTThread(new AERunnable() {
            public void runSupport() {
              stop(dm, shell, stateAfterStopped);
            }
          });
          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.