Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.OperationCanceledException


    }
  }

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


  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

 
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

                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

                      "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

        }
      }
    }

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

      }
    });

    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

    }

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

    }

    @Override
    public DeploymentConfiguration prepareForDeployment(CloudFoundryServer server,
        CloudFoundryApplicationModule module, IProgressMonitor monitor) throws CoreException {
      throw new OperationCanceledException();
    }
View Full Code Here

      if (cancelled[0]) {
        if (!status[0].isOK()) {
          CloudFoundryPlugin.logError("Failed to deploy application due to: " + status[0].getMessage(), //$NON-NLS-1$
              status[0].getException());
        }
        throw new OperationCanceledException();
      }
      else {
        if (status[0].isOK()) {
          status[0] = appModule.validateDeploymentInfo();
        }
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.