public class LibraryUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Library |
createLibrary(LibraryTable libraryTable,
java.lang.String baseName) |
static Library |
findLibrary(Module module,
java.lang.String name) |
static Library |
findLibraryByClass(java.lang.String fqn,
Project project) |
static OrderEntry |
findLibraryEntry(VirtualFile file,
Project project) |
static VirtualFile [] |
getLibraryRoots(Module [] modules,
boolean includeSourceFiles,
boolean includeJdk) |
static VirtualFile [] |
getLibraryRoots(Project project) |
static VirtualFile [] |
getLibraryRoots(Project project,
boolean includeSourceFiles,
boolean includeJdk) |
static java.lang.String |
getPresentableName(Library library) |
static boolean |
isClassAvailableInLibrary(Library library,
java.lang.String fqn) |
static boolean |
isClassAvailableInLibrary(java.util.List<? extends VirtualFile> files,
java.lang.String fqn) |
static boolean |
isClassAvailableInLibrary(VirtualFile [] files,
java.lang.String fqn) |
public static boolean isClassAvailableInLibrary(Library library, java.lang.String fqn)
public static boolean isClassAvailableInLibrary(VirtualFile [] files, java.lang.String fqn)
public static boolean isClassAvailableInLibrary(java.util.List<? extends VirtualFile> files, java.lang.String fqn)
public static Library createLibrary(LibraryTable libraryTable, java.lang.String baseName)
public static VirtualFile [] getLibraryRoots(Project project)
public static VirtualFile [] getLibraryRoots(Project project, boolean includeSourceFiles, boolean includeJdk)
public static VirtualFile [] getLibraryRoots(Module [] modules, boolean includeSourceFiles, boolean includeJdk)
public static OrderEntry findLibraryEntry(VirtualFile file, Project project)
public static java.lang.String getPresentableName(Library library)