Examples of asyncExec()


Examples of org.eclipse.swt.widgets.Display.asyncExec()

    new Thread(new Runnable() {
      public void run()
      {
        DocsUtils.sleepMillis(millis);
       
        display.asyncExec(new Runnable() {
          public void run()
          {
            if (DocsUtils.safeEquals(oldMessage, getMessage()))
            {
              clearMessage();
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

      case OperationHistoryEvent.UNDONE:
      case OperationHistoryEvent.REDONE:
        if (display != null
            && event.getOperation().hasContext(undoContext)) {
          contextActive = true;
          display.asyncExec(new Runnable() {
            public void run() {
              update();
            }
          });
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

        break;
      case OperationHistoryEvent.OPERATION_NOT_OK:
        if (display != null
            && event.getOperation().hasContext(undoContext)) {
          contextActive = true;
          display.asyncExec(new Runnable() {
            public void run() {
              if (pruning) {
                IStatus status = event.getStatus();
                /*
                 * Prune the history unless we can determine
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

      case OperationHistoryEvent.OPERATION_CHANGED:
        if (event.getOperation().hasContext(undoContext)) {
          contextActive = true;
        }
        if (display != null && event.getOperation() == getOperation()) {
          display.asyncExec(new Runnable() {
            public void run() {
              update();
            }
          });
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

    }
        Display asyncDisplay = getDisplay();
        if (asyncDisplay == null || asyncDisplay.isDisposed()) {
            return Status.CANCEL_STATUS;
        }
        asyncDisplay.asyncExec(new Runnable() {
            public void run() {
                IStatus result = null;
                try {
                    //As we are in the UI Thread we can
                    //always know what to tell the job.
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

          public void focusGained(FocusEvent e) {
            /* Running in an asyncExec because the selectAll() does not  
             * appear to work when using mouse to give focus to text.
             */
            Display display = filterText.getDisplay();
            display.asyncExec(new Runnable() {
                        public void run() {
                          if (!filterText.isDisposed()){
                  if (getInitialText().equals(filterText.getText().trim())){
                    filterText.selectAll();
                  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

        public void runWithException() throws Throwable {
          r.run();
        }
      };
      display.asyncExec(startupRunnable);
    }
  }
}
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

    if (shell == null)
      return;
    Display display = shell.getDisplay();
    if (display == null)
      return;
    display.asyncExec(new Runnable() {
      @Override
      public void run() {
        logger.debug("Refresh " + treeViewer);
        if (treeViewer != null) {
          Search oldInput = (Search) treeViewer.getInput();
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

    if (shell == null)
      return;
    Display display = shell.getDisplay();
    if (display == null)
      return;
    display.asyncExec(new Runnable() {
      @Override
      public void run() {
        logger.debug("Refresh " + treeViewer);
        if (treeViewer != null) {
          Search oldInput = (Search) treeViewer.getInput();
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.asyncExec()

    if (shell == null)
      return;
    Display display = shell.getDisplay();
    if (display == null)
      return;
    display.asyncExec(new Runnable() {
      @Override
      public void run() {
        logger.debug("Refresh " + treeViewer);
        if (treeViewer != null) {
          Search oldInput = (Search) treeViewer.getInput();
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.