Package org.eclipse.swt.widgets

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


        final Display display = Display.getCurrent();
        filterText.addModifyListener(new ModifyListener() {
          public void modifyText(ModifyEvent e) {
            final StagingViewSearchThread searchThread = new StagingViewSearchThread(
                StagingView.this);
            display.timerExec(200, new Runnable() {
              public void run() {
                searchThread.start();
              }
            });
          }
View Full Code Here


              if (fAutoScrollDirection == SWT.UP) {
                int top= getInclusiveTopIndex();
                if (top > 0) {
                  fCachedTextViewer.setTopIndex(top -1);
                  expandSelection(top -1);
                  display.timerExec(TIMER_INTERVAL, this);
                }
              }
            }
          };
          break;
View Full Code Here

            public void run() {
              if (fAutoScrollDirection == SWT.DOWN) {
                int top= getInclusiveTopIndex();
                fCachedTextViewer.setTopIndex(top +1);
                expandSelection(top +1 + fCachedViewportSize);
                display.timerExec(TIMER_INTERVAL, this);
              }
            }
          };
          break;
      }
View Full Code Here

          break;
      }

      if (timer != null) {
        fAutoScrollDirection= direction;
        display.timerExec(TIMER_INTERVAL, timer);
      }
    }

    /**
     * Returns the viewer's first visible line, even if only partially visible.
View Full Code Here

     * (see ProgressListener in constructor), or a timeout has been reached.
     */
    final Display display= shell.getDisplay();

    // Make sure the display wakes from sleep after timeout:
    display.timerExec(100, new Runnable() {
      public void run() {
        fCompleted= true;
      }
    });

View Full Code Here

    Display display= getDisplay();
    if (display == null)
      return;

    fNumberOfPostSelectionChangedEvents[0]++;
    display.timerExec(getEmptySelectionChangedEventDelay(), new Runnable() {
      final int id= fNumberOfPostSelectionChangedEvents[0];
      public void run() {
        if (id == fNumberOfPostSelectionChangedEvents[0]) {
          // Check again because this is executed after the delay
          if (getDisplay() != null)  {
View Full Code Here

  private void createActionMonitor() {
    actionMonitor = new Action("Monitor", IAction.AS_CHECK_BOX) { //$NON-NLS-1$
      public void run() {
        if (actionMonitor.isChecked() && !output.isDisposed()) {
          Display display = output.getDisplay();
          display.timerExec(100, trackWidgets);
        }
      }
    };

    actionMonitor.setToolTipText("Enable/Disable monitoring of widgets"); //$NON-NLS-1$
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.