Examples of syncExec()


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

            break;
          }         
        }
                   
        if (clearPopups) {
          display.syncExec(new Runnable() {
            public void run() {
              clearStaticActions();
            }
          });
        }
View Full Code Here

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

            final List<ManagedBean> removalList = serverRegistry.getObjectsToBeRemoved();
            if (removalList != null)
            {
                Display display = getSite().getShell().getDisplay();
                display.syncExec(new Runnable()
                    {
                        public void run()
                        {
                            IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
                            final MBeanView view = (MBeanView)window.getActivePage().findView(MBeanView.ID);
View Full Code Here

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

    {
        final List<ManagedServer> closedServers = ApplicationRegistry.getClosedServers();
        if (closedServers != null)
        {
            Display display = getSite().getShell().getDisplay();
            display.syncExec(new Runnable()
                {
                    public void run()
                    {
                        for (ManagedServer server : closedServers)
                        {
View Full Code Here

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

                {
                    setWorkerRunning(false);
                    break; //stop the thread
                }
               
                display.syncExec(new Runnable()
                {
                    public void run()
                    {
                        if (_form == null || _form.isDisposed())
                        {
View Full Code Here

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

        Display display = shell.getDisplay();
        if (display == null)
          return Status.CANCEL_STATUS;

        AskForClassNameThread askForClass = new AskForClassNameThread();
        display.syncExec(askForClass);
        String className = askForClass.getClassName();

        if (className != null) {
          if (className.contains(".")) {
            className = className.substring(0,
View Full Code Here

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

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

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

              }
            }

            Display display = PlatformUI.getWorkbench().getDisplay();
            OpenEditor openEditor = new OpenEditor();
            display.syncExec(openEditor);
            editorStatus = openEditor.status;
          } else {
            // In UI Thread
            editorStatus = openEditor(workingModel);
          }
View Full Code Here

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

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

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

    if (!PlatformUI.isWorkbenchRunning())
      return;
    final IWorkbench workbench = PlatformUI.getWorkbench();
    final Display display = workbench.getDisplay();

    display.syncExec(new Runnable() {
      @Override
      public void run() {
        if (!display.isDisposed())
          workbench.close();
      }
View Full Code Here

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

  public void stop() {
    if (!PlatformUI.isWorkbenchRunning())
      return;
    final IWorkbench workbench = PlatformUI.getWorkbench();
    final Display display = workbench.getDisplay();
    display.syncExec(new Runnable() {
      public void run() {
        if (!display.isDisposed())
          workbench.close();
      }
    });
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.