Search in sources :

Example 6 with FrameworkType

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

the class DetectionExcludesConfigurationTest method testAddExcludedFrameworkForExcludedFile.

public void testAddExcludedFrameworkForExcludedFile() {
    final FrameworkType type = getType();
    getConfiguration().addExcludedFile(myTempDir, type);
    assertOneElement(getState().getFiles());
    getConfiguration().addExcludedFramework(type);
    assertEmpty(getState().getFiles());
    assertOneElement(getState().getFrameworkTypes());
}
Also used : FrameworkType(com.intellij.framework.FrameworkType)

Example 7 with FrameworkType

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

the class FacetImporter method disableFacetAutodetection.

private void disableFacetAutodetection(Module module, IdeModifiableModelsProvider provider) {
    if (!isDisableFacetAutodetection(module))
        return;
    final DetectionExcludesConfiguration excludesConfiguration = DetectionExcludesConfiguration.getInstance(module.getProject());
    final FrameworkType frameworkType = FrameworkDetectionUtil.findFrameworkTypeForFacetDetector(myFacetType);
    if (frameworkType != null) {
        for (VirtualFile file : provider.getContentRoots(module)) {
            excludesConfiguration.addExcludedFile(file, frameworkType);
        }
    }
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) FrameworkType(com.intellij.framework.FrameworkType) DetectionExcludesConfiguration(com.intellij.framework.detection.DetectionExcludesConfiguration)

Aggregations

FrameworkType (com.intellij.framework.FrameworkType)7 DetectionExcludesConfiguration (com.intellij.framework.detection.DetectionExcludesConfiguration)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)2 DetectedFrameworkDescription (com.intellij.framework.detection.DetectedFrameworkDescription)1 ListPopup (com.intellij.openapi.ui.popup.ListPopup)1 PopupStep (com.intellij.openapi.ui.popup.PopupStep)1 BaseListPopupStep (com.intellij.openapi.ui.popup.util.BaseListPopupStep)1 RelativePoint (com.intellij.ui.awt.RelativePoint)1 ArrayList (java.util.ArrayList)1 NotNull (org.jetbrains.annotations.NotNull)1