Examples of OperationCanceledException


Examples of org.eclipse.core.runtime.OperationCanceledException

    System.arraycopy(indexes, 0, indexes=new Index[count], 0, count);
  return indexes;
public boolean search(Index index, IProgressMonitor progressMonitor) {
  if (index == null) return COMPLETE;
  if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException();

  ReadWriteMonitor monitor = index.monitor;
  if (monitor == null) return COMPLETE; // index got deleted since acquired
  try {
    monitor.enterRead(); // ask permission to read
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

    }
  }

  protected void checkCanceled() {
    if (this.monitor != null && this.monitor.isCanceled())
      throw new OperationCanceledException();
  }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

  private void checkCanceled() {
    if (this.monitor != null && this.monitor.isCanceled()) {
      if (NameLookup.VERBOSE)
        System.out.println(Thread.currentThread() + " CANCELLING LOOKUP "); //$NON-NLS-1$
      throw new AbortCompilation(true/*silent*/, new OperationCanceledException());
    }
  }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

 
public AndPattern(int patternKind, int matchRule) {
  super(patternKind, matchRule);
}
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) throws IOException {
  if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException();

  this.resetQuery();
  SimpleSet intersectedNames = null;
  try {
    index.startQuery();
    do {
      SearchPattern pattern = ((InternalSearchPattern) this).currentPattern();
      EntryResult[] entries = ((InternalSearchPattern)pattern).queryIn(index);
      if (entries == null) return;

      SearchPattern decodedResult = pattern.getBlankPattern();
      SimpleSet newIntersectedNames = new SimpleSet(3);
      for (int i = 0, l = entries.length; i < l; i++) {
        if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException();

        EntryResult entry = entries[i];
        decodedResult.decodeIndexKey(entry.getWord());
        if (pattern.matchesDecodedKey(decodedResult)) {
          String[] names = entry.getDocumentNames(index);
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

                try {
                    bndFileText = FileUtils.readFully(resource).get();
                } catch (Exception e) {
                    String str = "Could not read file " + proxy.getName();
                    logger.logError(str, e);
                    throw new OperationCanceledException(str);
                }

                /*
                 * get the previous change for this file if it exists, or otherwise create a new change for it, but do
                 * not store it yet: wait until we know if there are actually changes in the file
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

                      "Starting of " + cloudModule.getDeployedApplicationName() + " timed out")); //$NON-NLS-1$ //$NON-NLS-2$
                }
              }
              catch (InterruptedException e) {
                server.setModuleState(modules, IServer.STATE_STOPPED);
                throw new OperationCanceledException();
              }

              AbstractAppStateTracker curTracker = CloudFoundryPlugin.getAppStateTracker(getServer()
                  .getServerType().getId(), cloudModule);
              if (curTracker != null) {
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

        }
      }
    }

    if (subProgress.isCanceled()) {
      throw new OperationCanceledException();
    }
    else if (error instanceof CoreException) {
      throw (CoreException) error;
    }
    else {
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

      }
    });

    if (server.getUsername() == null || server.getUsername().length() == 0 || server.getPassword() == null
        || server.getPassword().length() == 0 || server.getUrl() == null || server.getUrl().length() == 0) {
      throw new OperationCanceledException();
    }
  }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

    }

    @Override
    public void getCredentials(CloudFoundryServer server) {
      throw new OperationCanceledException();
    }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

    }

    @Override
    public DeploymentConfiguration prepareForDeployment(CloudFoundryServer server,
        CloudFoundryApplicationModule module, IProgressMonitor monitor) throws CoreException {
      throw new OperationCanceledException();
    }
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.