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

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


      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);
      this.lastIndexLocation = indexPath;
View Full Code Here


      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);
      this.lastIndexLocation = indexPath;
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

  } else {
    IPath[] paths = this.participant.selectIndexes(this.pattern, this.scope);
    length = paths.length;
    indexLocations = new IndexLocation[paths.length];
    for (int i = 0, len = paths.length; i < len; i++) {
      indexLocations[i] = new FileIndexLocation(paths[i].toFile(), true);
    }
  }
  Index[] indexes = JavaModelManager.getIndexManager().getIndexes(indexLocations, progressMonitor);
  this.areIndexesReady = indexes.length == length;
  return indexes;
View Full Code Here

TOP

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

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.