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

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

Introduction

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

Prototype

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

Source Link

Usage

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

License:Open Source License

/**
 * Index the content of the given source folder.
 */// w  w w  . ja va 2 s . c o m
public void indexSourceFolder(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 AddFolderToIndex(sourceFolder, project, inclusionPatterns, exclusionPatterns, this));
}