Examples of SafeRunnable


Examples of org.eclipse.jface.util.SafeRunnable

    final String filePath = fileDialog.open();
    if (filePath == null) {
      return;
    }

    final SafeRunnable runnable = new SafeRunnable() {
      public final void run() throws IOException {
        Writer fileWriter = null;
        try {
          fileWriter = new BufferedWriter(new FileWriter(filePath));
          final TableItem[] items = tableBindings.getItems();
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

                    ((ViewReference) ref).getPartName());
        }
        final IViewReference viewRef = ref;
        final IViewPart view = (IViewPart) ref.getPart(false);
        if (view != null) {
            SafeRunner.run(new SafeRunnable() {
                public void run() {
                  if (view instanceof IWorkbenchPart3) {
            Map properties = ((IWorkbenchPart3) view)
                .getPartProperties();
            if (!properties.isEmpty()) {
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.SafeRunnable

                }
            }
        };
        Runnable loader = new Loader(callback, waitLock);
        ApplicationWorker worker = Application.getWorker();
        SafeRunnable task = ApplicationWorker.GUARD.protect(loader);
        worker.submitForParallel(task);
    }
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.