Package org.gudy.azureus2.core3.util

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


      return button;
  }

  public void setTextLimit(int limit) {
    textLimit = limit;
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        if (text_entry_combo != null && !text_entry_combo.isDisposed()) {
          text_entry_combo.setTextLimit(textLimit);
        }
        if (text_entry_text != null && !text_entry_text.isDisposed()) {
View Full Code Here


      nbAnimation++;
      new LinearAnimator(this,new Point(x0,y1),new Point(x1,y1),50,30).start();
      return;
    }
    if(nbAnimation == 2) {
     shell.getDisplay().asyncExec(new AERunnable() {
      public void runSupport() {
        shell.dispose();
      }
    });
   }
View Full Code Here

  private void setShellAtStep(int step) {
    if(display == null || display.isDisposed())
      return;
    final int x = startX + ((endX - startX) * step ) / nbSteps;
    final int y = startY + ((endY - startY) * step ) / nbSteps;
    display.asyncExec(new AERunnable() {
      public void runSupport() {
        if(shell == null || shell.getShell() == null || shell.getShell().isDisposed())
          return;
        shell.getShell().setLocation(x,y);
      }   
View Full Code Here

  }

  public void printMessage(final String message) {
    if (display == null || display.isDisposed())
      return;
    display.asyncExec(new AERunnable() {
      public void runSupport() {
        if (textResults == null || textResults.isDisposed())
          return;
        textResults.append(message);
      }
View Full Code Here

              printMessage( "\n" + MessageText.getString("configureWizard.nat.unable") + ". \n(" + checker.getAdditionalInfo()+").\n");
              break;
            }
      }finally{
          if (display.isDisposed()) {return;}
          display.asyncExec(new AERunnable()  {
            public void runSupport() {
              if(bTestTCP != null && ! bTestTCP.isDisposed())
                bTestTCP.setEnabled(true);
      if(bTestUDP != null && ! bTestUDP.isDisposed())
        bTestUDP.setEnabled(true);
View Full Code Here

              }
            }
      
        }finally{
          if (display.isDisposed()) {return;}
          display.asyncExec(new AERunnable()  {
            public void runSupport() {
              if(bTestTCP != null && ! bTestTCP.isDisposed())
                bTestTCP.setEnabled(true);
              if(bTestUDP != null && ! bTestUDP.isDisposed())
                bTestUDP.setEnabled(true);
View Full Code Here

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

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
        HSLColor hslColor = new HSLColor();
        hslColor.initHSLbyRGB(colorTables.getRed(), colorTables.getGreen(),
            colorTables.getBlue());
View Full Code Here

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

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
        HSLColor hslBG = new HSLColor();
        hslBG.initHSLbyRGB(colorTables.getRed(), colorTables.getGreen(),
            colorTables.getBlue());
View Full Code Here

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

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
        HSLColor hslColor = new HSLColor();
        hslColor.initHSLbyRGB(colorTables.getRed(), colorTables.getGreen(),
            colorTables.getBlue());
View Full Code Here

 
  private void allocateDynamicColors() {
    if(display == null || display.isDisposed())
      return;
   
    Utils.execSWTThread(new AERunnable(){
      public void runSupport() {
        allocateBlues();
        allocateColorProgressBar();
        allocateColorErrorBG();
      }
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.