Examples of syncExec()


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

        }
        @SuppressWarnings("unchecked")
        public void run() {
            Display display = Display.getCurrent();
            final ArrayList<File> files = new ArrayList<File>();
            display.syncExec(new Runnable(){
                public void run() {
                    FileDialog openDialog = new FileDialog(getSite().getShell(), SWT.OPEN
                            | SWT.MULTI);
                    String file = openDialog.open();
                    if (file == null)
View Full Code Here

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

            super("Add Background layer..."); //$NON-NLS-1$
        }
        public void run() {
            Display display = Display.getCurrent();
            // final ArrayList<File> files = new ArrayList<File>();
            display.syncExec(new Runnable(){
                public void run() {
                    MapImport mapImport = new MapImport();
                    mapImport.getDialog().open();
                }
            });
View Full Code Here

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

        public SetBackgroundWMSCAction() {
            super("Add Background layer..."); //$NON-NLS-1$
        }
        public void run() {
            Display display = Display.getCurrent();
            display.syncExec(new Runnable(){
                public void run() {
                    MapImport mapImport = new MapImport();
                    mapImport.getDialog().open();
                }
            });
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()

  public void setContext(final IToolContext newContext) {

    assert this.displayThread != null;

    Display display = Display.findDisplay(this.displayThread);
    display.syncExec(new Runnable() {

      public void run() {

        toolContext = newContext;
        mainComposite.setContext(toolContext);
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 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 static boolean checkForGDI() {
        final boolean[] status = new boolean[1];               
        if (Platform.getOS().equals(Platform.OS_WIN32)) {
            final Display display = Display.getDefault();
            display.syncExec(new Runnable(){
                    public void run() {
                        // test to make sure that GDI+ is installed
                        Image image = null;
                        Path path = null;                                               
                        try {
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

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
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.