public class LibraryScopeCache
extends java.lang.Object
Constructor and Description |
---|
LibraryScopeCache(Project project) |
Modifier and Type | Method and Description |
---|---|
static LibraryScopeCache |
getInstance(Project project) |
GlobalSearchScope |
getLibrariesOnlyScope() |
GlobalSearchScope |
getLibraryScope(java.util.List<? extends OrderEntry> orderEntries)
Resolve references in SDK/libraries in context of all modules which contain it, but prefer classes from the same library
|
GlobalSearchScope |
getLibraryUseScope(java.util.List<? extends OrderEntry> orderEntries)
Returns a scope containing all modules depending on the library transitively plus all the project's libraries
|
GlobalSearchScope |
getScopeForSdk(JdkOrderEntry jdkOrderEntry) |
public LibraryScopeCache(Project project)
public static LibraryScopeCache getInstance(Project project)
public GlobalSearchScope getLibrariesOnlyScope()
public GlobalSearchScope getLibraryScope(java.util.List<? extends OrderEntry> orderEntries)
orderEntries
- the order entries that reference a particular SDK/librarypublic GlobalSearchScope getLibraryUseScope(java.util.List<? extends OrderEntry> orderEntries)
orderEntries
- the order entries that reference a particular SDK/librarypublic GlobalSearchScope getScopeForSdk(JdkOrderEntry jdkOrderEntry)