Cleanup (formatting)

This commit is contained in:
Roman Shevchenko
2016-08-25 20:52:09 +03:00
parent ca0342f342
commit 8dd45d8f2c
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
package com.intellij.openapi.roots;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.fileTypes.FileTypeRegistry;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
@@ -31,8 +32,7 @@ import java.util.List;
*/
public interface ProjectFileIndex extends FileIndex {
class SERVICE {
private SERVICE() {
}
private SERVICE() { }
public static ProjectFileIndex getInstance(Project project) {
return ServiceManager.getService(project, ProjectFileIndex.class);
@@ -149,16 +149,16 @@ public interface ProjectFileIndex extends FileIndex {
boolean isInLibrarySource(@NotNull VirtualFile fileOrDir);
/**
* @deprecated name of this method may be confusing. If you want to check if the file is excluded or ignored use {@link #isExcluded(com.intellij.openapi.vfs.VirtualFile)}.
* If you want to check if the file is ignored use {@link com.intellij.openapi.fileTypes.FileTypeRegistry#isFileIgnored(com.intellij.openapi.vfs.VirtualFile)}.
* If you want to check if the file or one of its parents is ignored use {@link #isUnderIgnored(com.intellij.openapi.vfs.VirtualFile)}.
* @deprecated name of this method may be confusing. If you want to check if the file is excluded or ignored use {@link #isExcluded(VirtualFile)}.
* If you want to check if the file is ignored use {@link FileTypeRegistry#isFileIgnored(VirtualFile)}.
* If you want to check if the file or one of its parents is ignored use {@link #isUnderIgnored(VirtualFile)}.
*/
@Deprecated
boolean isIgnored(@NotNull VirtualFile file);
/**
* Checks if the specified file or directory is located under project roots but the file itself or one of its parent directories is
* either excluded from the project or ignored by {@link com.intellij.openapi.fileTypes.FileTypeRegistry#isFileIgnored(com.intellij.openapi.vfs.VirtualFile)}).
* either excluded from the project or ignored by {@link FileTypeRegistry#isFileIgnored(VirtualFile)}).
*
* @param file the file to check.
* @return true if <code>file</code> is excluded or ignored, false otherwise.
@@ -167,10 +167,10 @@ public interface ProjectFileIndex extends FileIndex {
/**
* Checks if the specified file or directory is located under project roots but the file itself or one of its parent directories is ignored
* by {@link com.intellij.openapi.fileTypes.FileTypeRegistry#isFileIgnored(com.intellij.openapi.vfs.VirtualFile)}).
* by {@link FileTypeRegistry#isFileIgnored(VirtualFile)}).
*
* @param file the file to check.
* @return true if <code>file</code> is ignored, false otherwise.
*/
boolean isUnderIgnored(@NotNull VirtualFile file);
}
}