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

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.removeIndex()


        IClasspathEntry entry = classpath[i];
        if (entry.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
          IPath path = entry.getPath();
          if (rootInfos.get(path) == null) {
            externalTimeStamps.remove(path);
            indexManager.removeIndex(path); // force reindexing on next reference (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=250083 )
          }
        }
      }
    }
View Full Code Here


              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject());
              break;
            case IResourceDelta.REMOVED:
              // the jar was physically removed: remove the index
              indexManager.discardJobs(jarPath.toString());
              indexManager.removeIndex(jarPath);
              break;
          }
          break;
        }
        int kind = delta.getKind();
View Full Code Here

              // index the new jar
              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject());
              break;
            case IResourceDelta.CHANGED:
              // first remove the index so that it is forced to be re-indexed
              indexManager.removeIndex(jarPath);
              // then index the jar
              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject());
              break;
            case IResourceDelta.REMOVED:
              // the jar was physically removed: remove the index
View Full Code Here

            indexManager.removeSourceFolderFromIndex(this.project, path, inclusionPatterns, exclusionPatterns);
            break;
          case IClasspathEntry.CPE_LIBRARY:
            if (state.otherRoots.get(path) == null) { // if root was not shared
              indexManager.discardJobs(path.toString());
              indexManager.removeIndex(path);
              // TODO (kent) we could just remove the in-memory index and have the indexing check for timestamps
            }
            break;
        }
      }
View Full Code Here

        IClasspathEntry entry = classpath[i];
        if (entry.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
          IPath path = entry.getPath();
          if (rootInfos.get(path) == null) {
            externalTimeStamps.remove(path);
            indexManager.removeIndex(path); // force reindexing on next reference (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=250083 )
          }
        }
      }
    }
View Full Code Here

            indexManager.removeSourceFolderFromIndex(this.project, path, inclusionPatterns, exclusionPatterns);
            break;
          case IClasspathEntry.CPE_LIBRARY:
            if (state.otherRoots.get(path) == null) { // if root was not shared
              indexManager.discardJobs(path.toString());
              indexManager.removeIndex(path);
              // TODO (kent) we could just remove the in-memory index and have the indexing check for timestamps
            }
            break;
        }
      }
View Full Code Here

                if (oldurl == null && newurl == null) {
                  pathHasChanged = false;
                } else if (oldurl != null && newurl != null) {
                  pathHasChanged = !(newurl.equals(oldurl));
                } else if (oldurl != null) {
                  indexManager.removeIndex(newPath);
                }
                break;
              }
            }
            if (pathHasChanged) {
View Full Code Here

            indexManager.removeSourceFolderFromIndex(this.project, path, inclusionPatterns, exclusionPatterns);
            break;
          case IClasspathEntry.CPE_LIBRARY:
            if (state.otherRoots.get(path) == null) { // if root was not shared
              indexManager.discardJobs(path.toString());
              indexManager.removeIndex(path);
              // TODO (kent) we could just remove the in-memory index and have the indexing check for timestamps
            }
            break;
        }
      }
View Full Code Here

                if (oldurl == null && newurl == null) {
                  pathHasChanged = false;
                } else if (oldurl != null && newurl != null) {
                  pathHasChanged = !(newurl.equals(oldurl));
                } else if (oldurl != null) {
                  indexManager.removeIndex(newPath);
                }
                break;
              }
            }
            if (pathHasChanged) {
View Full Code Here

              // index the new jar
              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject(), root.getIndexPath());
              break;
            case IResourceDelta.CHANGED:
              // first remove the index so that it is forced to be re-indexed
              indexManager.removeIndex(jarPath);
              // then index the jar
              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject(), root.getIndexPath());
              break;
            case IResourceDelta.REMOVED:
              // the jar was physically removed: remove the index
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.