Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-06 18:53:55 +0000
committerjames2002-05-06 18:53:55 +0000
commit818c4c38c0b4cd9e54eff479473d792407e97b7c (patch)
tree9c74d39a39356f57e2de043442cec49cd774b73a
parent4a8bba1bf21a0eedf12d486ae307a95708d1c32e (diff)
downloadeclipse.platform.team-818c4c38c0b4cd9e54eff479473d792407e97b7c.tar.gz
eclipse.platform.team-818c4c38c0b4cd9e54eff479473d792407e97b7c.tar.xz
eclipse.platform.team-818c4c38c0b4cd9e54eff479473d792407e97b7c.zip
13044: Should have isIgnored(IResource) to cover derived and global pattern
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java2
1 files changed, 1 insertions, 1 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 01b53e022..ce297ce75 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
@@ -127,6 +127,7 @@ public final class Team {
* @return whether the file should be ignored
*/
public static boolean isIgnoredHint(IFile file) {
+ if (file.isDerived()) return true;
IIgnoreInfo[] ignorePatterns = getAllIgnores();
StringMatcher matcher;
for (int i = 0; i < ignorePatterns.length; i++) {
@@ -136,7 +137,6 @@ public final class Team {
if (matcher.match(file.getName())) return true;
}
}
- if (file.isDerived()) return true;
return false;
}

Back to the top