Commit d5ebbfb2 authored by Leonid Shalupov's avatar Leonid Shalupov
Browse files

Pull ProjectManagerImpl.getAllExcludedUrls to ProjectManagerEx

to implement getAllExcludedUrls in treepm's LegacyBridgeProjectManagerImpl too
parent 1d70698f
No related merge requests found
Showing with 6 additions and 3 deletions
+6 -3
......@@ -100,4 +100,7 @@ public abstract class ProjectManagerEx extends ProjectManager {
@Nullable
public abstract Project convertAndLoadProject(@NotNull VirtualFile path) throws IOException;
@NotNull
public abstract String[] getAllExcludedUrls();
}
......@@ -890,6 +890,7 @@ public class ProjectManagerImpl extends ProjectManagerEx implements Disposable {
}
}
@Override
@NotNull
public String[] getAllExcludedUrls() {
return myExcludeRootsCache.getExcludedUrls();
......
......@@ -2,8 +2,7 @@
package com.intellij.openapi.vfs.newvfs.persistent;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.project.impl.ProjectManagerImpl;
import com.intellij.openapi.project.ex.ProjectManagerEx;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.io.FileAttributes;
import com.intellij.openapi.util.io.FileUtil;
......@@ -58,7 +57,7 @@ class VfsEventGenerationHelper {
ChildInfo[] children;
if (attributes.isDirectory() && parent.getFileSystem() instanceof LocalFileSystem && !attributes.isSymLink()) {
Path root = Paths.get(parent.getPath(), childName);
Path[] excluded = ContainerUtil.mapNotNull(((ProjectManagerImpl)ProjectManager.getInstance()).getAllExcludedUrls(),
Path[] excluded = ContainerUtil.mapNotNull(ProjectManagerEx.getInstanceEx().getAllExcludedUrls(),
url -> {
Path path = Paths.get(VirtualFileManager.extractPath(url));
return path.startsWith(root) ? path : null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment