KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ui > dialogs > IResourceMappingResourceFilter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.internal.ui.dialogs;
12
13 import org.eclipse.core.resources.IResource;
14 import org.eclipse.core.resources.mapping.ResourceMapping;
15 import org.eclipse.core.resources.mapping.ResourceTraversal;
16 import org.eclipse.core.runtime.CoreException;
17
18 /**
19  * A filter for selecting resources of a resource mapping for
20  * inclusion in a view.
21  */

22 public interface IResourceMappingResourceFilter {
23     
24     /**
25      * Return whether the resource should be included in this filter.
26      * @param resource the resource
27      * @param mapping the mapping chiehc containes the resource
28      * @param traversal the traversal from which the resource was obtained
29      * @return whether the resource passes the filter
30      * @throws CoreException
31      */

32     boolean select(IResource resource, ResourceMapping mapping, ResourceTraversal traversal) throws CoreException;
33 }
34
Popular Tags