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
Nested ClassesModifier and TypeClassDescriptionstatic classSelectsSyncInfowhich match all child filters.static classSelectsSyncInfoinstances that are auto-mergable.static classAn abstract class which contains a set ofFastSyncInfoFilterinstances.static classSelectsSyncInfothat match any of the child filters.static classSelectsSyncInfoinstances that are pseudo-conflicts.static classSelectsSyncInfowhose change type match those of the filter.static classSelectsSyncInfowhose change direction match those of the filter.Nested classes/interfaces inherited from class org.eclipse.team.core.synchronize.SyncInfoFilter
SyncInfoFilter.ContentComparisonSyncInfoFilter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FastSyncInfoFiltergetDirectionAndChangeFilter(int direction, int change) SelectsSyncInfothat match the given change type and direction.booleanReturn whether the providedSyncInfomatches the filter.final booleanselect(SyncInfo info, IProgressMonitor monitor) Returntrueif the providedSyncInfomatches the filter.
-
Constructor Details
-
FastSyncInfoFilter
public FastSyncInfoFilter()
-
-
Method Details
-
getDirectionAndChangeFilter
SelectsSyncInfothat match the given change type and direction.- Parameters:
direction- the change direction (SyncInfo.OUTGOING,SyncInfo.INCOMINGandSyncInfo.CONFLICTING) that this filter matcheschange- the change type (SyncInfo.ADDITION,SyncInfo.DELETIONandSyncInfo.CHANGE) that this filter matches- Returns:
- a
FastSyncInfoFilterthat selectsSyncInfothat match the given change type and direction.
-
select
Return whether the providedSyncInfomatches the filter. The default behavior it to include resources whose syncKind is non-zero.- Parameters:
info- theSyncInfobeing tested- Returns:
trueif theSyncInfomatches the filter
-
select
Description copied from class:SyncInfoFilterReturntrueif the providedSyncInfomatches the filter.- Specified by:
selectin classSyncInfoFilter- Parameters:
info- theSyncInfoto be testedmonitor- a progress monitor- Returns:
trueif theSyncInfomatches the filter
-