Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.OperationCanceledException


        beginProcessing();
      }

      for (int i = 0; i < toRefresh.length && fDocument != null; i++) {
        if (monitor.isCanceled())
          throw new OperationCanceledException();
        process(toRefresh[i]);
      }
    }
    catch (Exception e) {
      // https://bugs.eclipse.org/bugs/show_bug.cgi?id=103676
View Full Code Here


    Node[] nodes = (Node[]) requests[0];
    StructuredViewer[] viewers = (StructuredViewer[]) requests[1];

    for (int i = 0; i < nodes.length; i++) {
      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      }
      doRefresh(nodes[i], viewers);
    }
  }
View Full Code Here

    }
   
    private void monitorWorked(IProgressMonitor monitor) {
        monitor.worked(1);
        if (monitor.isCanceled()) {
            throw new OperationCanceledException();
        }
    }
View Full Code Here

      monitor.beginTask("Building Cloud Image", IProgressMonitor.UNKNOWN);
   
   
        if(monitor.isCanceled())
          throw new OperationCanceledException();
      prepareWorkingDir();
       
      doWork()
       
      monitor.done();
View Full Code Here

        if ( currentProject == null || !currentProject.isAccessible() ) {
            return new IProject[0];
        }

        try {
            if ( monitor != null && monitor.isCanceled() ) throw new OperationCanceledException();

            if ( kind == IncrementalProjectBuilder.FULL_BUILD ) {
                fullBuild( monitor );
            } else {
                IResourceDelta delta = getDelta( getProject() );
View Full Code Here

        IProject currentProject = getProject();
        if ( currentProject == null || !currentProject.isAccessible() ) {
            return new IProject[0];
        }
        try {
            if ( monitor != null && monitor.isCanceled() ) throw new OperationCanceledException();

            if ( kind == IncrementalProjectBuilder.FULL_BUILD ) {
                fullBuild( monitor );
            } else {
                IResourceDelta delta = getDelta( getProject() );
View Full Code Here

        }

//        updateKBaseTracker( currentProject );

        try {
            if ( monitor != null && monitor.isCanceled() ) throw new OperationCanceledException();

            if ( kind == IncrementalProjectBuilder.FULL_BUILD ) {
                fullBuild( monitor );
            } else {
                IResourceDelta delta = getDelta( getProject() );
View Full Code Here

      monitor.beginTask("", 2000);

      proj.create(description, new SubProgressMonitor(monitor, 1000));

      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      }

      proj.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(
          monitor, 1000));
View Full Code Here

  }
 
  private boolean checkCancel(IProgressMonitor monitor) {
   
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
   
    if (isInterrupted()) {
      return true;
    }
View Full Code Here

      {
        ((QueryResult)getSearchResult()).addResultItem( e.nextElement());
        monitor.worked( 1);
      }
      if ( e.hasMoreElements())
        throw new OperationCanceledException("Query operation canceled");
    }
    catch ( OperationCanceledException oce)
    {
      throw oce;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.OperationCanceledException

Copyright © 2018 www.massapicom. 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.