mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
add default implementation to DirectoryIndexExcludePolicy.getExcludeRootsForModule()
GitOrigin-RevId: da4fecfc5a43ea29043bcf53968630266ea4f5c2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
89f3b43329
commit
7d67af8bd8
@@ -1,4 +1,4 @@
|
||||
// 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.
|
||||
// Copyright 2000-2019 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.
|
||||
|
||||
package com.intellij.openapi.roots.impl;
|
||||
|
||||
@@ -24,7 +24,6 @@ public interface DirectoryIndexExcludePolicy {
|
||||
|
||||
/**
|
||||
* @deprecated Override {@link #getExcludeUrlsForProject()} instead
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
@NotNull
|
||||
@@ -49,7 +48,7 @@ public interface DirectoryIndexExcludePolicy {
|
||||
|
||||
@NotNull
|
||||
@Contract(pure = true)
|
||||
VirtualFilePointer[] getExcludeRootsForModule(@NotNull ModuleRootModel rootModel);
|
||||
default VirtualFilePointer[] getExcludeRootsForModule(@NotNull ModuleRootModel rootModel) { return VirtualFilePointer.EMPTY_ARRAY;}
|
||||
|
||||
@NotNull
|
||||
static DirectoryIndexExcludePolicy[] getExtensions(@NotNull AreaInstance areaInstance) {
|
||||
|
||||
@@ -4,19 +4,19 @@ package com.jetbrains.python;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.roots.ModuleRootModel;
|
||||
import com.intellij.openapi.roots.OrderRootType;
|
||||
import com.intellij.openapi.roots.ProjectRootManager;
|
||||
import com.intellij.openapi.roots.impl.DirectoryIndexExcludePolicy;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.pointers.VirtualFilePointer;
|
||||
import com.intellij.util.ArrayUtilRt;
|
||||
import com.intellij.util.Function;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author traff
|
||||
@@ -66,12 +66,4 @@ public class PyDirectoryIndexExcludePolicy implements DirectoryIndexExcludePolic
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public VirtualFilePointer[] getExcludeRootsForModule(@NotNull ModuleRootModel rootModel) {
|
||||
|
||||
|
||||
return VirtualFilePointer.EMPTY_ARRAY;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user