mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add ProjectFileIndex.getInstance(Project) to simplify clients
This commit is contained in:
@@ -34,11 +34,19 @@ public interface ProjectFileIndex extends FileIndex {
|
||||
class SERVICE {
|
||||
private SERVICE() { }
|
||||
|
||||
/**
|
||||
* @deprecated use {@link ProjectFileIndex#getInstance(Project)} instead
|
||||
*/
|
||||
public static ProjectFileIndex getInstance(Project project) {
|
||||
return ServiceManager.getService(project, ProjectFileIndex.class);
|
||||
return ProjectFileIndex.getInstance(project);
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
static ProjectFileIndex getInstance(@NotNull Project project) {
|
||||
return ServiceManager.getService(project, ProjectFileIndex.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns module to which content the specified file belongs or null if the file does not belong to content of any module.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user