|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.core.synchronize.SyncInfoFilter
org.eclipse.team.core.synchronize.SyncInfoFilter.ContentComparisonSyncInfoFilter
public static class SyncInfoFilter.ContentComparisonSyncInfoFilter
Selects SyncInfo whose local and remote contents match.
This filter makes use of the IStorage provided by
an IResourceVariant to obtain the remote contents.
This means that the comparison may contact the server unless the contents
were cached locally by a previous operation. The caching of remote
contents is subscriber specific.
For folders, the comparison always returns true.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.team.core.synchronize.SyncInfoFilter |
|---|
SyncInfoFilter.ContentComparisonSyncInfoFilter |
| Constructor Summary | |
|---|---|
SyncInfoFilter.ContentComparisonSyncInfoFilter()
Create a filter that does not ignore whitespace. |
|
SyncInfoFilter.ContentComparisonSyncInfoFilter(boolean ignoreWhitespace)
Create a filter and configure how whitespace is handled. |
|
| Method Summary | |
|---|---|
boolean |
compareContents(IFile local,
IResourceVariant remote,
IProgressMonitor monitor)
Compare the contents of the local file and its variant. |
boolean |
select(SyncInfo info,
IProgressMonitor monitor)
Return true if the provided SyncInfo matches the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncInfoFilter.ContentComparisonSyncInfoFilter()
public SyncInfoFilter.ContentComparisonSyncInfoFilter(boolean ignoreWhitespace)
ignoreWhitespace - whether whitespace should be ignored| Method Detail |
|---|
public boolean select(SyncInfo info,
IProgressMonitor monitor)
SyncInfoFiltertrue if the provided SyncInfo matches the filter.
select in class SyncInfoFilterinfo - the SyncInfo to be testedmonitor - a progress monitor
true if the SyncInfo matches the filter
public boolean compareContents(IFile local,
IResourceVariant remote,
IProgressMonitor monitor)
select method to compare the
contents of two non-null files.
local - a local fileremote - a resource variant of the filemonitor - a progress monitor
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.