public class FastSyncInfoFilter extends SyncInfoFilter
SyncInfoFilter that does not require a progress monitor.
This enables these filters to be used when determining menu enablement or other
operations that must be short running.SyncInfo,
SyncInfoSet,
SyncInfoFilter| Modifier and Type | Class and Description |
|---|---|
static class |
FastSyncInfoFilter.AndSyncInfoFilter
Selects
SyncInfo which match all child filters. |
static class |
FastSyncInfoFilter.AutomergableFilter
Selects
SyncInfo instances that are auto-mergable. |
static class |
FastSyncInfoFilter.CompoundSyncInfoFilter
An abstract class which contains a set of
FastSyncInfoFilter instances. |
static class |
FastSyncInfoFilter.OrSyncInfoFilter
Selects
SyncInfo that match any of the child filters. |
static class |
FastSyncInfoFilter.PseudoConflictFilter
Selects
SyncInfo instances that are pseudo-conflicts. |
static class |
FastSyncInfoFilter.SyncInfoChangeTypeFilter
Selects
SyncInfo whose change type match those of the filter. |
static class |
FastSyncInfoFilter.SyncInfoDirectionFilter
Selects
SyncInfo whose change direction match those of the filter. |
SyncInfoFilter.ContentComparisonSyncInfoFilter| Constructor and Description |
|---|
FastSyncInfoFilter() |
| Modifier and Type | Method and Description |
|---|---|
static FastSyncInfoFilter |
getDirectionAndChangeFilter(int direction,
int change)
Selects
SyncInfo that match the given change type and direction. |
boolean |
select(SyncInfo info)
Return whether the provided
SyncInfo matches the filter. |
boolean |
select(SyncInfo info,
IProgressMonitor monitor)
Return
true if the provided SyncInfo matches the filter. |
public static FastSyncInfoFilter getDirectionAndChangeFilter(int direction, int change)
SyncInfo that match the given change type and direction.direction - the change direction (SyncInfo.OUTGOING,
SyncInfo.INCOMING and SyncInfo.CONFLICTING) that this filter matcheschange - the change type (SyncInfo.ADDITION,
SyncInfo.DELETION and SyncInfo.CHANGE) that this filter matchesFastSyncInfoFilter that selects SyncInfo that match the given
change type and direction.public boolean select(SyncInfo info)
SyncInfo matches the filter. The default
behavior it to include resources whose syncKind is non-zero.info - the SyncInfo being testedtrue if the SyncInfo matches the filterpublic final 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 monitortrue if the SyncInfo matches the filterGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.