KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > core > diff > DiffFilter


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.core.diff;
12
13 import org.eclipse.core.runtime.IProgressMonitor;
14
15
16 /**
17  * A <code>DiffNodeFilter</code> tests an {@link IDiff} for inclusion,
18  * typically in an {@link IDiffTree}.
19  *
20  * @see IDiff
21  * @see IDiffTree
22  *
23  * @since 3.2
24  */

25 public abstract class DiffFilter {
26
27     /**
28      * Return <code>true</code> if the provided <code>IDiffNode</code> matches the filter.
29      *
30      * @param diff the <code>IDiffNode</code> to be tested
31      * @param monitor a progress monitor
32      * @return <code>true</code> if the <code>IDiffNode</code> matches the filter
33      */

34     public abstract boolean select(IDiff diff, IProgressMonitor monitor);
35 }
36
Popular Tags