Search in sources :

Example 11 with DetectedFrameworkDescription

use of com.intellij.framework.detection.DetectedFrameworkDescription in project intellij-community by JetBrains.

the class FrameworkDetectionManager method getValidDetectedFrameworks.

private List<? extends DetectedFrameworkDescription> getValidDetectedFrameworks() {
    final Set<Integer> detectors = myDetectedFrameworksData.getDetectorsForDetectedFrameworks();
    List<DetectedFrameworkDescription> descriptions = new ArrayList<>();
    final FileBasedIndex index = FileBasedIndex.getInstance();
    final DetectionExcludesConfiguration excludesConfiguration = DetectionExcludesConfiguration.getInstance(myProject);
    for (Integer id : detectors) {
        final Collection<? extends DetectedFrameworkDescription> frameworks = runDetector(id, index, excludesConfiguration, false);
        for (DetectedFrameworkDescription framework : frameworks) {
            descriptions.add(framework);
        }
    }
    return FrameworkDetectionUtil.removeDisabled(descriptions);
}
Also used : DetectedFrameworkDescription(com.intellij.framework.detection.DetectedFrameworkDescription) FileBasedIndex(com.intellij.util.indexing.FileBasedIndex) DetectionExcludesConfiguration(com.intellij.framework.detection.DetectionExcludesConfiguration)

Aggregations

DetectedFrameworkDescription (com.intellij.framework.detection.DetectedFrameworkDescription)11 VirtualFile (com.intellij.openapi.vfs.VirtualFile)4 ArrayList (java.util.ArrayList)3 NotNull (org.jetbrains.annotations.NotNull)3 DetectionExcludesConfiguration (com.intellij.framework.detection.DetectionExcludesConfiguration)2 Pair (com.intellij.openapi.util.Pair)2 FileBasedIndex (com.intellij.util.indexing.FileBasedIndex)2 File (java.io.File)2 DefaultFacetsProvider (com.intellij.facet.impl.DefaultFacetsProvider)1 FrameworkType (com.intellij.framework.FrameworkType)1 ConfigureDetectedFrameworksDialog (com.intellij.framework.detection.impl.ui.ConfigureDetectedFrameworksDialog)1 Notification (com.intellij.notification.Notification)1 NotificationListener (com.intellij.notification.NotificationListener)1 Module (com.intellij.openapi.module.Module)1 IndexNotReadyException (com.intellij.openapi.project.IndexNotReadyException)1 PlatformModifiableModelsProvider (com.intellij.openapi.roots.PlatformModifiableModelsProvider)1 DefaultModulesProvider (com.intellij.openapi.roots.ui.configuration.DefaultModulesProvider)1 FacetsProvider (com.intellij.openapi.roots.ui.configuration.FacetsProvider)1 CheckedTreeNode (com.intellij.ui.CheckedTreeNode)1 MultiMap (com.intellij.util.containers.MultiMap)1