Class FastSyncInfoFilter
java.lang.Object
org.eclipse.team.core.synchronize.SyncInfoFilter
org.eclipse.team.core.synchronize.FastSyncInfoFilter
- Direct Known Subclasses:
FastSyncInfoFilter.AutomergableFilter
,FastSyncInfoFilter.CompoundSyncInfoFilter
,FastSyncInfoFilter.PseudoConflictFilter
,FastSyncInfoFilter.SyncInfoChangeTypeFilter
,FastSyncInfoFilter.SyncInfoDirectionFilter
A specialized
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.- Since:
- 3.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SelectsSyncInfo
which match all child filters.static class
SelectsSyncInfo
instances that are auto-mergable.static class
An abstract class which contains a set ofFastSyncInfoFilter
instances.static class
SelectsSyncInfo
that match any of the child filters.static class
SelectsSyncInfo
instances that are pseudo-conflicts.static class
SelectsSyncInfo
whose change type match those of the filter.static class
SelectsSyncInfo
whose change direction match those of the filter.Nested classes/interfaces inherited from class org.eclipse.team.core.synchronize.SyncInfoFilter
SyncInfoFilter.ContentComparisonSyncInfoFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FastSyncInfoFilter
getDirectionAndChangeFilter
(int direction, int change) SelectsSyncInfo
that match the given change type and direction.boolean
Return whether the providedSyncInfo
matches the filter.final boolean
select
(SyncInfo info, IProgressMonitor monitor) Returntrue
if the providedSyncInfo
matches the filter.
-
Constructor Details
-
FastSyncInfoFilter
public FastSyncInfoFilter()
-
-
Method Details
-
getDirectionAndChangeFilter
SelectsSyncInfo
that match the given change type and direction.- Parameters:
direction
- the change direction (SyncInfo.OUTGOING
,SyncInfo.INCOMING
andSyncInfo.CONFLICTING
) that this filter matcheschange
- the change type (SyncInfo.ADDITION
,SyncInfo.DELETION
andSyncInfo.CHANGE
) that this filter matches- Returns:
- a
FastSyncInfoFilter
that selectsSyncInfo
that match the given change type and direction.
-
select
Return whether the providedSyncInfo
matches the filter. The default behavior it to include resources whose syncKind is non-zero.- Parameters:
info
- theSyncInfo
being tested- Returns:
true
if theSyncInfo
matches the filter
-
select
Description copied from class:SyncInfoFilter
Returntrue
if the providedSyncInfo
matches the filter.- Specified by:
select
in classSyncInfoFilter
- Parameters:
info
- theSyncInfo
to be testedmonitor
- a progress monitor- Returns:
true
if theSyncInfo
matches the filter
-