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
public class FastSyncInfoFilter extends SyncInfoFilter
A specializedSyncInfoFilterthat 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:
SyncInfo,SyncInfoSet,SyncInfoFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFastSyncInfoFilter.AndSyncInfoFilterSelectsSyncInfowhich match all child filters.static classFastSyncInfoFilter.AutomergableFilterSelectsSyncInfoinstances that are auto-mergable.static classFastSyncInfoFilter.CompoundSyncInfoFilterAn abstract class which contains a set ofFastSyncInfoFilterinstances.static classFastSyncInfoFilter.OrSyncInfoFilterSelectsSyncInfothat match any of the child filters.static classFastSyncInfoFilter.PseudoConflictFilterSelectsSyncInfoinstances that are pseudo-conflicts.static classFastSyncInfoFilter.SyncInfoChangeTypeFilterSelectsSyncInfowhose change type match those of the filter.static classFastSyncInfoFilter.SyncInfoDirectionFilterSelectsSyncInfowhose change direction match those of the filter.-
Nested classes/interfaces inherited from class org.eclipse.team.core.synchronize.SyncInfoFilter
SyncInfoFilter.ContentComparisonSyncInfoFilter
-
-
Constructor Summary
Constructors Constructor Description FastSyncInfoFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FastSyncInfoFiltergetDirectionAndChangeFilter(int direction, int change)SelectsSyncInfothat match the given change type and direction.booleanselect(SyncInfo info)Return whether the providedSyncInfomatches the filter.booleanselect(SyncInfo info, IProgressMonitor monitor)Returntrueif the providedSyncInfomatches the filter.
-
-
-
Method Detail
-
getDirectionAndChangeFilter
public static FastSyncInfoFilter getDirectionAndChangeFilter(int direction, int change)
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
public boolean select(SyncInfo info)
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
public final boolean select(SyncInfo info, IProgressMonitor monitor)
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
-
-