List of usage examples for org.eclipse.jdt.internal.core.search.indexing IndexManager IndexManager
IndexManager
From source file:org.eclipse.jdt.internal.core.JavaModelManager.java
License:Open Source License
/** * Constructs a new JavaModelManager// w w w. j av a 2 s. c o m */ private JavaModelManager() { // singleton: prevent others from creating a new instance /* * It is required to initialize all fields that depends on a headless environment * only if the platform is running. Otherwise this breaks the ability to use * ASTParser in a non-headless environment. */ if (Platform.isRunning()) { this.indexManager = new IndexManager(); this.nonChainingJars = loadClasspathListCache(NON_CHAINING_JARS_CACHE); this.invalidArchives = loadClasspathListCache(INVALID_ARCHIVES_CACHE); String includeContainerReferencedLib = System.getProperty(RESOLVE_REFERENCED_LIBRARIES_FOR_CONTAINERS); this.resolveReferencedLibrariesForContainers = TRUE.equalsIgnoreCase(includeContainerReferencedLib); } }