Examples of syncExec()


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

       
        //Main loop
        for(int iter = 0 ; iter < MAX_ITERATIONS ; iter++) {
          if(iter%100 == 0) System.out.println(iter);
          if(display.isDisposed()) return;
          display.syncExec( new Runnable() {
            public void run() {
              panel.refresh(lPos);
            }
          });
          try {
View Full Code Here

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

    if (shell == null || shell.isDisposed())
      return;

    Display display = shell.getDisplay();
    display.syncExec(new Runnable() {
      public void run() {
        if (shell.isDisposed())
          return;

        switch (ShellSlider.this.direction) {
View Full Code Here

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

                }}).start();
             
              _core.addEventListener(new JMuleCoreEventListener() {
          public void eventOccured(JMuleCoreEvent event, final EventDescriptor eventDescriptor) {
            if( event == JMuleCoreEvent.NOT_ENOUGH_SPACE ) {
              display.syncExec(new JMRunnable() {
                NotEnoughSpaceDownloadingFile nes = (NotEnoughSpaceDownloadingFile)eventDescriptor;
                public void JMRun() {
                  Utils.showErrorMessage(shell,
                      _._("mainwindow.not_enough_space_dialog.title"),
                      _._("mainwindow.not_enough_space_dialog.message",
View Full Code Here

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

    final IWorkbench workbench = PlatformUI.getWorkbench();
    if (workbench == null)
      return;

    final Display display = workbench.getDisplay();
    display.syncExec(new Runnable() {
      public void run() {
        if (!display.isDisposed())
          workbench.close();
      }
    });
View Full Code Here

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

    final IWorkbench workbench = PlatformUI.getWorkbench();
    if (workbench == null)
      return;

    final Display display = workbench.getDisplay();
    display.syncExec(new Runnable() {
      public void run() {
        if (!display.isDisposed())
          workbench.close();
      }
    });
View Full Code Here

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

  public void stop() {
    final IWorkbench workbench = PlatformUI.getWorkbench();
    if (workbench == null)
      return;
    final Display display = workbench.getDisplay();
    display.syncExec(new Runnable() {
      public void run() {
        if (!display.isDisposed())
          workbench.close();
      }
    });
View Full Code Here

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

        Display display = PlatformUI.getWorkbench().getDisplay();
        if (display.getThread() == Thread.currentThread())
            uitask.run();
        else
            display.syncExec(uitask);

        return result.get();
    }

}
View Full Code Here

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

        };
        Display display = PlatformUI.getWorkbench().getDisplay();
        if (display.getThread() == Thread.currentThread())
            runnable.run();
        else
            display.syncExec(runnable);

        return null;
    }

}
View Full Code Here

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

                    resultRef.set(IDialogConstants.CANCEL_ID);
                }
            }
        };

        display.syncExec(runnable);
        int result = resultRef.get();

        if (result == IDialogConstants.CANCEL_ID)
            throw new ResolveCancelledException();
    }
View Full Code Here

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

    final String dialogType = type;
    final String defaultValue = defaultValueArg;
    final Answer a = new Answer();

    if (currentDisplay != null) {
      currentDisplay.syncExec(new Runnable() {

        public void run() {
          Shell shell = currentDisplay.getActiveShell();

          if (shell != null) {
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.