diff options
-rw-r--r-- | bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java index 40cd9c484..01b53e022 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java @@ -118,9 +118,15 @@ public final class Team { } /** - * Returns whether the given file is ignored by any of the global ignore patterns. + * Returns whether the given file should be ignored. + * + * This method answers true if the file matches one of the global ignore + * patterns, or if the file is marked as derived. + * + * @param file the file + * @return whether the file should be ignored */ - public static boolean isIgnored(IFile file) { + public static boolean isIgnoredHint(IFile file) { IIgnoreInfo[] ignorePatterns = getAllIgnores(); StringMatcher matcher; for (int i = 0; i < ignorePatterns.length; i++) { @@ -130,6 +136,7 @@ public final class Team { if (matcher.match(file.getName())) return true; } } + if (file.isDerived()) return true; return false; } |