Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/core/diff/DiffFilter.java')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/diff/DiffFilter.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/diff/DiffFilter.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/diff/DiffFilter.java
new file mode 100644
index 000000000..120294f81
--- /dev/null
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/diff/DiffFilter.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.team.core.diff;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+
+
+/**
+ * A <code>DiffNodeFilter</code> tests an {@link IDiffNode} for inclusion,
+ * typically in an {@link IDiffTree}.
+ *
+ * @see IDiffNode
+ * @see IDiffTree
+ *
+ * @since 3.2
+ */
+public abstract class DiffFilter {
+
+ /**
+ * Return <code>true</code> if the provided <code>IDiffNode</code> matches the filter.
+ *
+ * @param node the <code>IDiffNode</code> to be tested
+ * @param monitor a progress monitor
+ * @return <code>true</code> if the <code>IDiffNode</code> matches the filter
+ */
+ public abstract boolean select(IDiffNode node, IProgressMonitor monitor);
+}

Back to the top