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

Examples of org.eclipse.dltk.core.search.indexing.IndexManager


    assertTrue(ResourcesPlugin.getWorkspace().isAutoBuilding() == false);
  }
 
  @SuppressWarnings("restriction")
  protected static void disableDLTKIndexer() {
    IndexManager indexManager = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
    indexManager.disable();
  }
View Full Code Here


    indexManager.disable();
  }
 
  @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

  @SuppressWarnings("restriction")
  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") );
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.search.indexing.IndexManager

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.