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 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:
  • Constructor Details

    • FastSyncInfoFilter

      public FastSyncInfoFilter()
  • Method Details

    • getDirectionAndChangeFilter

      public static FastSyncInfoFilter getDirectionAndChangeFilter(int direction, int change)
      Selects SyncInfo that match the given change type and direction.
      Parameters:
      direction - the change direction (SyncInfo.OUTGOING, SyncInfo.INCOMING and SyncInfo.CONFLICTING) that this filter matches
      change - the change type (SyncInfo.ADDITION, SyncInfo.DELETION and SyncInfo.CHANGE) that this filter matches
      Returns:
      a FastSyncInfoFilter that selects SyncInfo that match the given change type and direction.
    • select

      public boolean select(SyncInfo info)
      Return whether the provided SyncInfo matches the filter. The default behavior it to include resources whose syncKind is non-zero.
      Parameters:
      info - the SyncInfo being tested
      Returns:
      true if the SyncInfo matches the filter
    • select

      public final boolean select(SyncInfo info, IProgressMonitor monitor)
      Description copied from class: SyncInfoFilter
      Return true if the provided SyncInfo matches the filter.
      Specified by:
      select in class SyncInfoFilter
      Parameters:
      info - the SyncInfo to be tested
      monitor - a progress monitor
      Returns:
      true if the SyncInfo matches the filter