Search in sources :

Example 1 with PersistentLibraryKind

use of com.intellij.openapi.roots.libraries.PersistentLibraryKind in project azure-tools-for-java by Microsoft.

the class SparkLibraryOptionsPanel method calculateSuitableLibraries.

private List<Library> calculateSuitableLibraries() {
    ArrayList suitableLibraries = new ArrayList();
    Library[] libraries = this.librariesContainer.getAllLibraries();
    for (int i = 0; i < libraries.length; ++i) {
        Library library = libraries[i];
        PersistentLibraryKind type = ((LibraryEx) library).getKind();
        if (type != null && type instanceof SparkLibraryKind) {
            suitableLibraries.add(library);
        }
    }
    return suitableLibraries;
}
Also used : PersistentLibraryKind(com.intellij.openapi.roots.libraries.PersistentLibraryKind) ArrayList(java.util.ArrayList) LibraryEx(com.intellij.openapi.roots.impl.libraries.LibraryEx) Library(com.intellij.openapi.roots.libraries.Library)

Aggregations

LibraryEx (com.intellij.openapi.roots.impl.libraries.LibraryEx)1 Library (com.intellij.openapi.roots.libraries.Library)1 PersistentLibraryKind (com.intellij.openapi.roots.libraries.PersistentLibraryKind)1 ArrayList (java.util.ArrayList)1