blob: d4298bfb8d5f111cd469666011a2e126489db39d [file] [log] [blame]
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.search.internal.core;
import org.eclipse.core.resources.IResource;
/**
* Defines a scope to which search results are limited.
*/
public interface ISearchScope {
/**
* Checks whether the given element is enclosed by
* this scope or not.
*
* @param element the resource to be checked
* @return <code>true</code> if the resource is inside the search scope
*
*/
public boolean encloses(IResource element);
}