Examples of syncExec()


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

    public void run( IProgressMonitor monitor ) throws Exception {
        final boolean create[] = new boolean[1];
        create[0] = false;
       
        Display display = PlatformUI.getWorkbench().getDisplay();
        display.syncExec( new Runnable(){           
            public void run() {
                boolean yes = MessageDialog.openConfirm(null, "New Feature", "Panels available "+panels.size() );
                create[0] = yes;
            }           
        });
View Full Code Here

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

        final IStatusLineManager statusBar = getStatusBar();
        final Display display = Display.getCurrent();
       
        if( statusBar == null || display == null ) return;
       
        display.syncExec(new Runnable(){
            public void run(){
                statusBar.setMessage( msg);
            }
        });
    }
View Full Code Here

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

        final Display display = shell.getDisplay();
       
        OpenAndWaitListener listener = new OpenAndWaitListener();
        setSelectionListener(listener);
       
        display.syncExec(new Runnable() {
            public void run() {
                while (!isClosed()) {
                    if (!display.readAndDispatch()) display.sleep();
                }
            }});
View Full Code Here

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

   
      Display display = PlatformUI.getWorkbench().getDisplay();
      DataUpdater dataUpdater = new DataUpdater (windows[0], this.log);
     
      if (Thread.currentThread() != display.getThread()) {
        display.syncExec(dataUpdater);
    } else {
      dataUpdater.run();
    }
     
      if (!dataUpdater.returnList.isEmpty()){
View Full Code Here

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

      this.converters = converters;
      this.ciShellContext = ciShellContext;
      this.logger = logger;
     
      Display display = PlatformUI.getWorkbench().getDisplay();
      display.syncExec(this);
    }
   
    public void run() {
      // Lots of persisters found, return the chooser.
      ViewDataChooser viewDataChooser = new ViewDataChooser(
View Full Code Here

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

        Display display = Display.getDefault();
       
        if (display != null) {
            GetAttributeDefinitionsAction action =
              new GetAttributeDefinitionsAction();
            display.syncExec(action);
           
            return action.attributes;
        } else {
            return new EditableAttributeDefinition[0];
        }
View Full Code Here

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

  public InputDataItem[] getInputDataItems() {
    Display display = Display.getDefault();
       
        if (display != null) {
            GetInputDataAction action = new GetInputDataAction();
            display.syncExec(action);
           
            return action.inputDataItems;
        } else {
            return new InputDataItem[0];
        }
View Full Code Here

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

  public OutputDataItem[] getOutputDataItems() {
    Display display = Display.getDefault();
       
        if (display != null) {
            GetOutputDataAction action = new GetOutputDataAction();
            display.syncExec(action);
           
            return action.outputDataItems;
        } else {
            return new OutputDataItem[0];
        }
View Full Code Here

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

        part.getEditingDomain(),
        target);

    // we need to exec the Wizard in the UI thread
    final Display display = PlatformUI.getWorkbench().getDisplay();
    display.syncExec(new Runnable() {

      @Override
      public void run() {
        WizardDialog dialog = new WizardDialog(display.getActiveShell(), wizard);
        dialog.create();
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.