use of com.intellij.project.model.impl.module.content.JpsSourceFolder in project intellij-community by JetBrains.
the class MavenSourceFoldersModuleExtension method unregisterAll.
public void unregisterAll(@NotNull Url url, boolean under) {
for (Iterator<JpsSourceFolder> iterator = myJpsSourceFolders.iterator(); iterator.hasNext(); ) {
JpsSourceFolder eachFolder = iterator.next();
String ancestor = under ? url.getUrl() : eachFolder.getUrl();
String child = under ? eachFolder.getUrl() : url.getUrl();
if (VfsUtilCore.isEqualOrAncestor(ancestor, child)) {
iterator.remove();
Disposer.dispose(eachFolder);
}
}
}
Aggregations