Package org.eclipse.jdt.internal.core.search

Examples of org.eclipse.jdt.internal.core.search.JavaSearchDocument


          String zipEntryName = ze.getName();
          if (Util.isClassFileName(zipEntryName) &&
              isValidPackageNameForClass(zipEntryName)) {
            // index only classes coming from valid packages - https://bugs.eclipse.org/bugs/show_bug.cgi?id=293861
            final byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(ze, zip);
            JavaSearchDocument entryDocument = new JavaSearchDocument(ze, zipFilePath, classFileBytes, participant);
            this.manager.indexDocument(entryDocument, participant, index, this.containerPath);
          }
        }
        this.manager.saveIndex(index);
        if (JobManager.VERBOSE)
View Full Code Here


          String zipEntryName = ze.getName();
          if (Util.isClassFileName(zipEntryName) &&
              isValidPackageNameForClass(zipEntryName)) {
            // index only classes coming from valid packages - https://bugs.eclipse.org/bugs/show_bug.cgi?id=293861
            final byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(ze, zip);
            JavaSearchDocument entryDocument = new JavaSearchDocument(ze, zipFilePath, classFileBytes, participant);
            this.manager.indexDocument(entryDocument, participant, index, indexPath);
          }
        }
        this.manager.saveIndex(index);
        if (JobManager.VERBOSE)
View Full Code Here

        // iterate each entry to index it
        ZipEntry ze = (ZipEntry) e.nextElement();
        String zipEntryName = ze.getName();
        if (Util.isClassFileName(zipEntryName)) {
          final byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(ze, zip);
          JavaSearchDocument entryDocument = new JavaSearchDocument(ze, new Path(pathToJar), classFileBytes, participant);
          entryDocument.setIndex(index);
          new BinaryIndexer(entryDocument).indexDocument();
        }
      }
      index.save();
    } finally {
View Full Code Here

        // iterate each entry to index it
        ZipEntry ze = (ZipEntry) e.nextElement();
        String zipEntryName = ze.getName();
        if (Util.isClassFileName(zipEntryName)) {
          final byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(ze, zip);
          JavaSearchDocument entryDocument = new JavaSearchDocument(ze, new Path(pathToJar), classFileBytes, participant);
          entryDocument.setIndex(index);
          new BinaryIndexer(entryDocument).indexDocument();
        }
      }
      index.save();
    } finally {
View Full Code Here

          String zipEntryName = ze.getName();
          if (Util.isClassFileName(zipEntryName) &&
              isValidPackageNameForClass(zipEntryName)) {
            // index only classes coming from valid packages - https://bugs.eclipse.org/bugs/show_bug.cgi?id=293861
            final byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(ze, zip);
            JavaSearchDocument entryDocument = new JavaSearchDocument(ze, zipFilePath, classFileBytes, participant);
            this.manager.indexDocument(entryDocument, participant, index, indexPath);
          }
        }
        if(this.forceIndexUpdate) {
          this.manager.savePreBuiltIndex(index);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.search.JavaSearchDocument

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.