Package org.eclipse.jface.operation

Examples of org.eclipse.jface.operation.IRunnableContext.run()


        };

        try {
            IRunnableContext runContext = searchContext.getRunContext();
            if (runContext != null) {
                runContext.run(false, false, runnable);
            } else {
                runnable.run(new NullProgressMonitor());
            }
            return result;
        } catch (InvocationTargetException e) {
View Full Code Here


   */
  protected void executeOperation(DocumentProviderOperation operation, IProgressMonitor monitor) throws CoreException {
    try {
      IRunnableContext runner= getOperationRunner(monitor);
      if (runner != null)
        runner.run(false, false, operation);
      else
        operation.run(monitor);
    } catch (InvocationTargetException x) {
      Throwable e= x.getTargetException();
      if (e instanceof CoreException)
View Full Code Here

   */
  protected void executeOperation(DocumentProviderOperation operation, IProgressMonitor monitor) throws CoreException {
    try {
      IRunnableContext runner= getOperationRunner(monitor);
      if (runner != null)
        runner.run(false, false, operation);
      else
        operation.run(monitor);
    } catch (InvocationTargetException x) {
      Throwable e= x.getTargetException();
      if (e instanceof CoreException)
View Full Code Here

   */
  protected void executeOperation(DocumentProviderOperation operation, IProgressMonitor monitor) throws CoreException {
    try {
      IRunnableContext runner= getOperationRunner(monitor);
      if (runner != null)
        runner.run(false, false, operation);
      else
        operation.run(monitor);
    } catch (InvocationTargetException x) {
      Throwable e= x.getTargetException();
      if (e instanceof CoreException)
View Full Code Here

      }
    };

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

      };

      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

      };

      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.