diff --git a/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectFileIndex.java b/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectFileIndex.java index d47f640926d5..ee6c141050b0 100644 --- a/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectFileIndex.java +++ b/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectFileIndex.java @@ -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 file 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 file is ignored, false otherwise. */ boolean isUnderIgnored(@NotNull VirtualFile file); -} +} \ No newline at end of file