Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 72454 Details for
Bug 39239
[Preferences] Ignored Resources should accept multi directory pattern
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch proposal
patch_39239.txt (text/plain), 2.83 KB, created by
bartosz michalik
on 2007-06-26 05:19:59 EDT
(
hide
)
Description:
patch proposal
Filename:
MIME Type:
Creator:
bartosz michalik
Created:
2007-06-26 05:19:59 EDT
Size:
2.83 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.core >Index: src/org/eclipse/team/core/Team.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.core/src/org/eclipse/team/core/Team.java,v >retrieving revision 1.64 >diff -u -r1.64 Team.java >--- src/org/eclipse/team/core/Team.java 16 Mar 2007 21:03:39 -0000 1.64 >+++ src/org/eclipse/team/core/Team.java 26 Jun 2007 09:13:49 -0000 >@@ -88,12 +88,12 @@ > } > > /** >- * Returns whether the given file should be ignored. >+ * Returns whether the given file or folder with its content 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 resource the file >+ * @param resource the file or folder > * @return whether the file should be ignored > */ > public static boolean isIgnoredHint(IResource resource) { >@@ -113,7 +113,11 @@ > private static boolean matchesEnabledIgnore(IResource resource) { > StringMatcher[] matchers = getStringMatchers(); > for (int i = 0; i < matchers.length; i++) { >- if (matchers[i].match(resource.getName())) return true; >+ String resourceName = resource.getName(); >+ if(matchers[i].isPathPattern()) { >+ resourceName = "/" + resource.getProjectRelativePath().toString(); //$NON-NLS-1$ >+ } >+ if (matchers[i].match(resourceName)) return true; > } > return false; > } >Index: src/org/eclipse/team/internal/core/StringMatcher.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.core/src/org/eclipse/team/internal/core/StringMatcher.java,v >retrieving revision 1.9 >diff -u -r1.9 StringMatcher.java >--- src/org/eclipse/team/internal/core/StringMatcher.java 5 Jul 2006 14:57:40 -0000 1.9 >+++ src/org/eclipse/team/internal/core/StringMatcher.java 26 Jun 2007 09:13:49 -0000 >@@ -29,6 +29,7 @@ > > /* boundary value beyond which we don't need to search in the text */ > protected int fBound = 0; >+ private boolean pathPattern; > > > protected static final char fSingleWildCard = '\u0000'; >@@ -126,6 +127,8 @@ > fIgnoreWildCards = ignoreWildCards; > fLength = aPattern.length(); > >+ pathPattern = aPattern.indexOf('/') != -1; >+ > /* convert case */ > if (fIgnoreCase) { > fPattern = aPattern.toUpperCase(); >@@ -224,6 +227,15 @@ > public boolean match(String text) { > return match(text, 0, text.length()); > } >+ >+ /** >+ * check existence of '/' in the pattern. >+ * @return <b>true</b> if pattern contains '/' >+ */ >+ public boolean isPathPattern() { >+ return pathPattern; >+ } >+ > /** > * This method parses the given pattern into segments seperated by wildcard '*' characters. > * Since wildcards are not being used in this case, the pattern consists of a single segment.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39239
:
72454
|
72704