Examples of IRunnableContext


Examples of org.eclipse.jface.operation.IRunnableContext

        } else {
          rev = GitFileRevision.inIndex(repository, gitPath,
              DirCacheEntry.STAGE_2);
        }

        IRunnableContext runnableContext = getContainer();
        if (runnableContext == null)
          runnableContext = PlatformUI.getWorkbench().getProgressService();

        EditableRevision leftEditable;
        if (file != null)
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableContext

   
    browsePackage = new Button(classGroup, SWT.PUSH);
    browsePackage.setText(ClickPlugin.getString("action.browse"));
    browsePackage.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        IRunnableContext context= new BusyIndicatorRunnableContext();
        int style = PackageSelectionDialog.F_REMOVE_DUPLICATES |
                    PackageSelectionDialog.F_SHOW_PARENTS |
                    PackageSelectionDialog.F_HIDE_DEFAULT_PACKAGE;
       
        JavaSearchScope scope = new JavaSearchScope();
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableContext

        }
      } else {
        IPackageFragmentRoot pfr = pp.packageFragmentRoot;
        IPackageFragment pf = pp.packageFragment;
        try {
          IRunnableContext context = new FindTestsRunnableContext();
          if (pf != null) {
            result.addAll(Arrays.asList(
                TestSearchEngine.findTests(context, new Object[] { pf }, filter)));
          } else if (pfr != null) {
            result.addAll(Arrays.asList(
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableContext

        }
      }
    };

    try {
      IRunnableContext context = new ProgressMonitorDialog(getShell());
      context.run(true, true, runnable);
    }
    catch (InvocationTargetException e) {
    }
    catch (InterruptedException e) {
    }
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableContext

              project.getProject(), monitor));
        }
      };

      try {
        IRunnableContext context = new ProgressMonitorDialog(
            SpringUIUtils.getStandardDisplay().getActiveShell());
        context.run(true, true, runnable);
      } catch (InvocationTargetException e) {
      } catch (InterruptedException e) {
      }
      scannedFiles = files.toArray();
    }
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableContext

          files.addAll(javaLocator.locateJavaConfigs(project.getProject(), monitor));
        }
      };

      try {
        IRunnableContext context = new ProgressMonitorDialog(SpringUIUtils.getStandardDisplay()
            .getActiveShell());
        context.run(true, true, runnable);
      }
      catch (InvocationTargetException e) {
        StatusHandler.log(new Status(IStatus.ERROR, BeansUIPlugin.PLUGIN_ID,
            "An error occurred while scanning for config files.", e));
      }
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.