|
Eclipse Platform Release 3.0 |
||||||||||
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
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 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 whitspace 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 ignoredMethod Detail |
public boolean select(SyncInfo info, IProgressMonitor monitor)
SyncInfoFilter
true
if the provided SyncInfo
matches the filter.
select
in class SyncInfoFilter
info
- the SyncInfo
to be testedmonitor
- a progress monitor
true
if the SyncInfo
matches the filterpublic 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.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.