Package org.eclipse.dltk.core.search.index

Examples of org.eclipse.dltk.core.search.index.Index


  public static void printIndexDebugInfo(IProject prj) throws Exception {
   
    System.out.println("========= Index DEBUG INFO ========");
   
    IndexManager im = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
    Index idx = im.getIndex(prj.getFullPath(), true, true); // This is index file for project root
   
    assertNotNull(im.indexLocations.keyTable);
    System.out.println("===== Index Locations ====\n" + im.indexLocations + "\n");
   
    im.waitUntilReady();
   
    // And then check using
    String[] docNames = idx.queryDocumentNames(null); // To check all documents in this index
    assertNotNull(docNames);
    System.out.println("===== Index docs ====\n" + StringUtil.collToString(docNames, "\n") );
   
    System.out.println("===== Query: Type Decl, * ====");
    debugPrintCategory(idx, IIndexConstants.TYPE_DECL);
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.search.index.Index

Copyright © 2018 www.massapicom. 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.