public static class SyncInfoFilter.ContentComparisonSyncInfoFilter extends SyncInfoFilter
SyncInfowhose local and remote contents match. This filter makes use of the
IStorageprovided by an
IResourceVariantto 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
|Constructor and Description|
Create a filter that does not ignore whitespace.
Create a filter and configure how whitespace is handled.
|Modifier and Type||Method and Description|
Compare the contents of the local file and its variant.
public ContentComparisonSyncInfoFilter(boolean ignoreWhitespace)
ignoreWhitespace- whether whitespace should be ignored
public boolean select(SyncInfo info, IProgressMonitor monitor)
trueif the provided
SyncInfomatches the filter.
public boolean compareContents(IFile local, IResourceVariant remote, IProgressMonitor monitor)
selectmethod to compare the contents of two non-null files.
local- a local file
remote- a resource variant of the file
monitor- a progress monitor
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.