Examples of AERunnable


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

   * @param index
   */
  protected void setIndex(final int index) {
    int  selected_value = values[index];
   
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        if (list == null || list.isDisposed()) {
          return;
        }

View Full Code Here

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

    return table.isSelected(item);
  }

  public void setSelected(final boolean bSelected) {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        swt_setSelected(bSelected);
      }
    });
  }
View Full Code Here

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

    item.setExpanded(expanded);
    // Need to execute (de)select later, because if we are in a paint event
    // that paint event may be reporting a row selected before the selection
    // event fired (Cocoa 3650 fires paint before select yet the row is marked
    // selected)
    Utils.execSWTThreadLater(0, new AERunnable() {
      public void runSupport() {
        if (table.isDisposed() || item == null) {
          return;
        }
        if (item.isDisposed()
View Full Code Here

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

  /**
   * Overridable function that is called when row needs invalidation.
   *
   */
  public void invalidate() {
    Utils.execSWTThread(new AERunnable() {
   
      public void runSupport() {
        if (!checkWidget(REQUIRE_TABLEITEM_INITIALIZED | REQUIRE_VISIBILITY))
          return;

View Full Code Here

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

  }

  public void setSubItemCount(int i) {
    numSubItems = i;
    if (item != null) {
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          if (item.isDisposed()) {
            return;
          }
          if (item.getItemCount() != numSubItems) {
View Full Code Here

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

        if (Constants.isOSX)
          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;
            org.eclipse.swt.widgets.MenuItem[] items = menu
                .getItems();
View Full Code Here

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

      int i = findIndex(defValue, values);
      if (i >= 0) {
        // no recursion, because this area only gets called again if i was < 0
        setIndex(i);
      } else {
        Utils.execSWTThread(new AERunnable() {
          public void runSupport() {
            if (list == null || list.isDisposed()) {
              return;
            }

            if (useCombo) {
              ((Combo)list).deselectAll();
            } else {
              ((List)list).deselectAll();
            }
          }
        });
      }
      return;
    }
   
    String selected_value = values[index];

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

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

    Utils.centerWindowRelativeTo(shell,parentShell);
   
  }
 
  public void setTitle(final String title) {
    Utils.execSWTThread(new AERunnable() {   
      public void runSupport() {
        if(display == null || display.isDisposed()) return;
        shell.setText(title);
      }   
    });
View Full Code Here

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

      }   
    });
  }
 
  public void setText(final String text) {
    Utils.execSWTThread(new AERunnable() {   
      public void runSupport() {
        if(display == null || display.isDisposed()) return;
        label.setText(text.replaceAll("&", "&&"));
      }   
    });
View Full Code Here

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

      }   
    });
  }
 
  public void addOption(final String option) {
    Utils.execSWTThread(new AERunnable() {   
      public void runSupport() {
        if(display == null || display.isDisposed()) return;
        combo.add(option);
        if(combo.getItemCount() == 1) {
          combo.setText(option);
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.