Package org.eclipse.jdt.internal.core.index

Examples of org.eclipse.jdt.internal.core.index.IndexLocation


    } else if (file == null) {
      containerPath = documentPath.removeLastSegments(1);
    }
    IndexManager manager = JavaModelManager.getIndexManager();
    // TODO (frederic) should not have to create index manually, should expose API that recreates index instead
    IndexLocation indexLocation;
    indexLocation = new FileIndexLocation(indexPath.toFile(), true);
    manager.ensureIndexExists(indexLocation, containerPath);
    manager.scheduleDocumentIndexing(document, containerPath, indexLocation, this);
    if (!indexPath.equals(this.lastIndexLocation)) {
      manager.updateParticipant(indexPath, containerPath);
View Full Code Here


    } else if (file == null) {
      containerPath = documentPath.removeLastSegments(1);
    }
    IndexManager manager = JavaModelManager.getIndexManager();
    // TODO (frederic) should not have to create index manually, should expose API that recreates index instead
    IndexLocation indexLocation;
    indexLocation = new FileIndexLocation(indexPath.toFile(), true);
    manager.ensureIndexExists(indexLocation, containerPath);
    manager.scheduleDocumentIndexing(document, containerPath, indexLocation, this);
    if (!indexPath.equals(this.lastIndexLocation)) {
      manager.updateParticipant(indexPath, containerPath);
View Full Code Here

          this.manager.removeIndex(this.containerPath);
          return false;
        }
        index.separator = JAR_SEPARATOR;
        IPath indexPath = null;
        IndexLocation indexLocation;
        if ((indexLocation = index.getIndexLocation()) != null) {
          indexPath = new Path(indexLocation.getCanonicalFilePath());
        }
        for (Enumeration e = zip.entries(); e.hasMoreElements();) {
          if (this.isCancelled) {
            if (JobManager.VERBOSE)
              org.eclipse.jdt.internal.core.util.Util.verbose("-> indexing of " + zip.getName() + " has been cancelled"); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

  public void generateIndexForJar(String pathToJar, String pathToIndexFile) throws IOException {
    File f = new File(pathToJar);
    if (!f.exists()) {
      throw new FileNotFoundException(pathToJar + " not found"); //$NON-NLS-1$
    }
    IndexLocation indexLocation = new FileIndexLocation(new File(pathToIndexFile));
    Index index = new Index(indexLocation, pathToJar, false /*reuse index file*/);
    SearchParticipant participant = SearchEngine.getDefaultSearchParticipant();
    index.separator = JAR_SEPARATOR;
    ZipFile zip = new ZipFile(pathToJar);
    try {
View Full Code Here

  public void generateIndexForJar(String pathToJar, String pathToIndexFile) throws IOException {
    File f = new File(pathToJar);
    if (!f.exists()) {
      throw new FileNotFoundException(pathToJar + " not found"); //$NON-NLS-1$
    }
    IndexLocation indexLocation = new FileIndexLocation(new File(pathToIndexFile));
    Index index = new Index(indexLocation, pathToJar, false /*reuse index file*/);
    SearchParticipant participant = SearchEngine.getDefaultSearchParticipant();
    index.separator = JAR_SEPARATOR;
    ZipFile zip = new ZipFile(pathToJar);
    try {
View Full Code Here

          this.manager.removeIndex(this.containerPath);
          return false;
        }
        index.separator = JAR_SEPARATOR;
        IPath indexPath = null;
        IndexLocation indexLocation;
        if ((indexLocation = index.getIndexLocation()) != null) {
          indexPath = new Path(indexLocation.getCanonicalFilePath());
        }
        for (Enumeration e = zip.entries(); e.hasMoreElements();) {
          if (this.isCancelled) {
            if (JobManager.VERBOSE)
              org.eclipse.jdt.internal.core.util.Util.verbose("-> indexing of " + zip.getName() + " has been cancelled"); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.index.IndexLocation

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.