fix "IDEA-221944 Deadlock on opening second project" and support preloading for proje...
[idea/community.git] / platform / projectModel-impl / src / com / intellij / openapi / components / CompositePathMacroFilter.kt
1 // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
2 package com.intellij.openapi.components
3
4 import com.intellij.openapi.application.PathMacroFilter
5 import org.jdom.Attribute
6 import org.jdom.Element
7
8 class CompositePathMacroFilter(private val filters: List<PathMacroFilter>) : PathMacroFilter() {
9   override fun skipPathMacros(element: Element) = filters.any { it.skipPathMacros(element) }
10
11   override fun skipPathMacros(attribute: Attribute) = filters.any { it.skipPathMacros(attribute) }
12
13   override fun recursePathMacros(attribute: Attribute) = filters.any { it.recursePathMacros(attribute) }
14 }