Example usage for org.eclipse.jdt.internal.core.search.indexing RemoveFolderFromIndex RemoveFolderFromIndex

List of usage examples for org.eclipse.jdt.internal.core.search.indexing RemoveFolderFromIndex RemoveFolderFromIndex

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.search.indexing RemoveFolderFromIndex RemoveFolderFromIndex.

Prototype

public RemoveFolderFromIndex(IPath folderPath, char[][] inclusionPatterns, char[][] exclusionPatterns,
            IProject project, IndexManager manager) 

Source Link

Usage

From source file:org.eclipse.jdt.internal.core.search.indexing.IndexManager.java

License:Open Source License

/**
 * Remove the content of the given source folder from the index.
 *//*w w  w .j  a  va2s  . c  o m*/
public void removeSourceFolderFromIndex(JavaProject javaProject, IPath sourceFolder, char[][] inclusionPatterns,
        char[][] exclusionPatterns) {
    IProject project = javaProject.getProject();
    if (this.jobEnd > this.jobStart) {
        // skip it if a job to index the project is already in the queue
        IndexRequest request = new IndexAllProject(project, this);
        if (isJobWaiting(request))
            return;
    }

    request(new RemoveFolderFromIndex(sourceFolder, inclusionPatterns, exclusionPatterns, project, this));
}