|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.rdt.sync.core.AbstractSyncFileFilter
public abstract class AbstractSyncFileFilter
Class for filtering files during synchronization. The non-abstract class is provided by the sync provider. All read operations (e.g. shouldIgnore) are thread safe (/need to implemented thread safe by the subclasses).
| Nested Class Summary | |
|---|---|
class |
AbstractSyncFileFilter.AbstractIgnoreRule
Abstract class for ignore rules |
| Field Summary | |
|---|---|
protected java.util.List<AbstractSyncFileFilter.AbstractIgnoreRule> |
rules
|
| Constructor Summary | |
|---|---|
AbstractSyncFileFilter()
|
|
| Method Summary | |
|---|---|
void |
addPattern(org.eclipse.core.resources.IResource resource,
boolean exclude)
Add the resource pattern |
abstract void |
addPattern(org.eclipse.core.resources.IResource resource,
boolean exclude,
int index)
Add resource pattern. |
void |
addPattern(java.lang.String pattern,
boolean exclude)
Add the pattern |
abstract void |
addPattern(java.lang.String pattern,
boolean exclude,
int index)
Add pattern. |
abstract AbstractSyncFileFilter |
clone()
|
boolean |
demote(AbstractSyncFileFilter.AbstractIgnoreRule pattern)
Swap a pattern with its higher-index neighbor Assumes pattern appears no more than once |
java.util.List<AbstractSyncFileFilter.AbstractIgnoreRule> |
getPatterns()
Get all patterns for this filter |
java.util.List<AbstractSyncFileFilter.AbstractIgnoreRule> |
getRules()
Get the rules in this filter. |
boolean |
promote(AbstractSyncFileFilter.AbstractIgnoreRule pattern)
Swap a pattern with its lower-index neighbor Assumes pattern only appears once |
void |
removePattern(AbstractSyncFileFilter.AbstractIgnoreRule pattern)
Remove a pattern from the filter Assumes pattern appears no more than once |
boolean |
replacePattern(AbstractSyncFileFilter.AbstractIgnoreRule oldRule,
java.lang.String newPattern,
boolean exclude)
Replace pattern with another - useful for when existing patterns are edited |
abstract void |
saveFilter()
Save filters |
boolean |
shouldIgnore(org.eclipse.core.resources.IResource r)
Apply the filter to the given string |
boolean |
shouldIgnore(java.lang.String path,
boolean isFolder)
Apply the filter to the given string |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<AbstractSyncFileFilter.AbstractIgnoreRule> rules
| Constructor Detail |
|---|
public AbstractSyncFileFilter()
| Method Detail |
|---|
public java.util.List<AbstractSyncFileFilter.AbstractIgnoreRule> getRules()
public void addPattern(java.lang.String pattern,
boolean exclude)
pattern - pattern to addexclude - exclude flag
public void addPattern(org.eclipse.core.resources.IResource resource,
boolean exclude)
resource - resourceexclude - exclude flag
public abstract void addPattern(java.lang.String pattern,
boolean exclude,
int index)
pattern - pattern to addexclude - exclude flagindex - location of pattern in the list
public abstract void addPattern(org.eclipse.core.resources.IResource resource,
boolean exclude,
int index)
resource - resource to addexclude - true: exclude resource, false: include resourceindex - location of pattern in the listpublic boolean demote(AbstractSyncFileFilter.AbstractIgnoreRule pattern)
pattern -
public java.util.List<AbstractSyncFileFilter.AbstractIgnoreRule> getPatterns()
public boolean promote(AbstractSyncFileFilter.AbstractIgnoreRule pattern)
pattern -
public void removePattern(AbstractSyncFileFilter.AbstractIgnoreRule pattern)
pattern -
public boolean replacePattern(AbstractSyncFileFilter.AbstractIgnoreRule oldRule,
java.lang.String newPattern,
boolean exclude)
oldRule - newPattern - type -
public boolean shouldIgnore(org.eclipse.core.resources.IResource r)
s - - the string
public boolean shouldIgnore(java.lang.String path,
boolean isFolder)
s - - the string
public abstract void saveFilter()
throws java.io.IOException
java.io.IOExceptionpublic abstract AbstractSyncFileFilter clone()
clone in class java.lang.Object
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||