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());
}
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);
}
}
}
Aggregations