Package org.eclipse.dltk.core.search.indexing

Examples of org.eclipse.dltk.core.search.indexing.IndexManager.waitUntilReady()


  @SuppressWarnings("restriction")
  protected static void enableDLTKIndexer(boolean waitUntilReady) {
    IndexManager indexManager = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
    indexManager.enable();
    if(waitUntilReady) {
      indexManager.waitUntilReady();
    }
  }
 
  /* ----------------- ----------------- */
 
 
View Full Code Here


    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") );
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.