Examples of queryDocumentNames()


Examples of org.eclipse.jdt.internal.core.index.Index.queryDocumentNames()

        if (JobManager.VERBOSE)
          org.eclipse.jdt.internal.core.util.Util.verbose("-> indexing " + zip.getName()); //$NON-NLS-1$
        long initialTime = System.currentTimeMillis();

        String[] paths = index.queryDocumentNames(""); // all file names //$NON-NLS-1$
        if (paths != null) {
          int max = paths.length;
          /* check integrity of the existing index file
           * if the length is equal to 0, we want to index the whole jar again
           * If not, then we want to check that there is no missing entry, if
View Full Code Here

Examples of org.eclipse.jdt.internal.core.index.Index.queryDocumentNames()

    if (monitor == null) return true; // index got deleted since acquired

    try {
      monitor.enterRead(); // ask permission to read
      String containerRelativePath = Util.relativePath(this.folderPath, this.containerPath.segmentCount());
      String[] paths = index.queryDocumentNames(containerRelativePath);
      // all file names belonging to the folder or its subfolders and that are not excluded (see http://bugs.eclipse.org/bugs/show_bug.cgi?id=32607)
      if (paths != null) {
        if (this.exclusionPatterns == null && this.inclusionPatterns == null) {
          for (int i = 0, max = paths.length; i < max; i++) {
            this.manager.remove(paths[i], this.containerPath); // write lock will be acquired by the remove operation
View Full Code Here

Examples of org.eclipse.jdt.internal.core.index.Index.queryDocumentNames()

      monitor = index.monitor;
      if (monitor == null) return true; // index got deleted since acquired

      monitor.enterRead(); // ask permission to read

      String[] paths = index.queryDocumentNames(""); // all file names //$NON-NLS-1$
      int max = paths == null ? 0 : paths.length;
      final SimpleLookupTable indexedFileNames = new SimpleLookupTable(max == 0 ? 33 : max + 11);
      final String OK = "OK"; //$NON-NLS-1$
      final String DELETED = "DELETED"; //$NON-NLS-1$
      if (paths != null) {
View Full Code Here

Examples of org.eclipse.jdt.internal.core.index.Index.queryDocumentNames()

    if (monitor == null) return true; // index got deleted since acquired

    try {
      monitor.enterRead(); // ask permission to read

      String[] paths = index.queryDocumentNames(""); // all file names //$NON-NLS-1$
      int max = paths == null ? 0 : paths.length;
      final SimpleLookupTable indexedFileNames = new SimpleLookupTable(max==0 ? 33 : max+11);
      final String OK = "OK"; //$NON-NLS-1$
      final String DELETED = "DELETED"; //$NON-NLS-1$
      if (paths == null) {
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.