Examples of asyncExec()


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() {
        if (treeViewer != null) {
          logger.debug("Update TreeViewer");
          Search oldInput = (Search) treeViewer.getInput();
View Full Code Here

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

        return MessageDialog.openQuestion(null, "Share your Selection.", "Do you want to share your Codemap selection with " + sender.getName() + "?");
    }
   
    protected void showStopShareMessage(final String message) {
        final Display display = Display.getDefault();
        display.asyncExec(new Runnable() {
            public void run() {
                MessageDialog.openInformation(display.getActiveShell(), "Stopped sharing.", message);
            }
        });              
    }   
View Full Code Here

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

        synchronized (fRunnableLock) {
          if (fIsRunnablePosted)
            return;
          fIsRunnablePosted= true;
        }
        d.asyncExec(fRunnable);
      }
    }
  }

  /*
 
View Full Code Here

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

  }

  @Override
  public void dataChanged(DataUpdate update) {
    final Display display = getSite().getShell().getDisplay();
    display.asyncExec(new Runnable() {
      @Override
      public void run() {
        handleDataChange();
      }
View Full Code Here

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

  }

  @Override
  public void dataChanged(DataUpdate update) {
    final Display display = getSite().getShell().getDisplay();
    display.asyncExec(new Runnable() {
      @Override
      public void run() {
        handleDataChange();
      }
    });
View Full Code Here

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

        }

        if (!geom.isValid()) {
            final Display display = Display.getDefault();
            if (showError) {
                display.asyncExec(new Runnable(){
                    public void run() {
                        IStatus errorStatus = new Status(IStatus.ERROR,
                                EditPlugin.ID, IStatus.ERROR,
                                Messages.GeometryCreationUtil_errorMsg, null);
                        ErrorDialog
View Full Code Here

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

                lock.lock();
                state.add(UDIGDisplaySafeLockTest.State.THREAD_HAS_LOCK);
                final boolean[] locked=new boolean[1];
                locked[0]=false;

                display.asyncExec(new Runnable(){
                    public void run() {
                        display.asyncExec(new Runnable(){
                            public void run() {
                                state.add(UDIGDisplaySafeLockTest.State.DISPLAY_WAITING_FOR_LOCK);
                                lock.lock();
View Full Code Here

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

                final boolean[] locked=new boolean[1];
                locked[0]=false;

                display.asyncExec(new Runnable(){
                    public void run() {
                        display.asyncExec(new Runnable(){
                            public void run() {
                                state.add(UDIGDisplaySafeLockTest.State.DISPLAY_WAITING_FOR_LOCK);
                                lock.lock();
                                lock.unlock();
View Full Code Here

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

                        } catch (IOException e) {
                        }
                    }
                    setSchema(schema);
                    Display display = getControl().getDisplay();
                    display.asyncExec( new Runnable(){
                        @Override
                        public void run() {
                            setBlockOnOpen(true);
                       
                            int code = open();
View Full Code Here

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

        Display display = PlatformUI.getWorkbench().getDisplay();
        if (display == null)
            display = Display.getDefault();

        display.asyncExec(new Runnable(){
            public void run() {

                IContributionManager bar = mapEditorSite.getActionBars().getStatusLineManager();
                if (bar == null)
                    return;
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.