Package org.eclipse.team.core.diff
Class FastDiffFilter
- java.lang.Object
-
- org.eclipse.team.core.diff.DiffFilter
-
- org.eclipse.team.core.diff.FastDiffFilter
-
public abstract class FastDiffFilter extends DiffFilter
A specializedDiffNodeFilterthat 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.2
- See Also:
IDiff,IDiffTree,DiffFilter
-
-
Constructor Summary
Constructors Constructor Description FastDiffFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FastDiffFiltergetStateFilter(int[] states, int mask)abstract booleanselect(IDiff diff)Returntrueif the providedIDiffNodematches the filter.booleanselect(IDiff diff, IProgressMonitor monitor)Returntrueif the providedIDiffNodematches the filter.
-
-
-
Method Detail
-
getStateFilter
public static final FastDiffFilter getStateFilter(int[] states, int mask)
-
select
public final boolean select(IDiff diff, IProgressMonitor monitor)
Description copied from class:DiffFilterReturntrueif the providedIDiffNodematches the filter.- Specified by:
selectin classDiffFilter- Parameters:
diff- theIDiffNodeto be testedmonitor- a progress monitor- Returns:
trueif theIDiffNodematches the filter
-
select
public abstract boolean select(IDiff diff)
Returntrueif the providedIDiffNodematches the filter.- Parameters:
diff- theIDiffNodeto be tested- Returns:
trueif theIDiffNodematches the filter
-
-