Example usage for org.eclipse.jdt.core.search SearchDocument setIndex

List of usage examples for org.eclipse.jdt.core.search SearchDocument setIndex

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.search SearchDocument setIndex.

Prototype

public void setIndex(Index indexToSet) 

Source Link

Usage

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

License:Open Source License

public void indexDocument(SearchDocument searchDocument, SearchParticipant searchParticipant, Index index,
        IPath indexLocation) {//from ww w  .j  a v  a2s . c  om
    try {
        searchDocument.setIndex(index);
        searchParticipant.indexDocument(searchDocument, indexLocation);
    } finally {
        searchDocument.setIndex(null);
    }
}