eclipseme.core.model.impl
Class SourceResourcesFilter

java.lang.Object
  extended byeclipseme.core.model.impl.SourceResourcesFilter
All Implemented Interfaces:
IResourceFilter

public class SourceResourcesFilter
extends java.lang.Object
implements IResourceFilter

A resource filter implementation to handle filtering of the source folder resources.

Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.

Copyright (c) 2004 Craig Setera
All Rights Reserved.
Licensed under the Eclipse Public License - v 1.0


$Revision: 1.4 $
$Date: 2005/04/02 22:10:41 $

Author:
Craig Setera

Constructor Summary
SourceResourcesFilter(org.eclipse.jdt.core.IJavaProject javaProject)
          Construct a new filter instance.
 
Method Summary
 boolean shouldBeIncluded(org.eclipse.core.resources.IFile file)
          Return a boolean indicating whether the specified file should be included.
 boolean shouldTraverseContainer(org.eclipse.core.resources.IContainer container)
          Return a boolean indicating whether the specified container should be traversed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceResourcesFilter

public SourceResourcesFilter(org.eclipse.jdt.core.IJavaProject javaProject)
                      throws org.eclipse.jdt.core.JavaModelException
Construct a new filter instance.

Method Detail

shouldTraverseContainer

public boolean shouldTraverseContainer(org.eclipse.core.resources.IContainer container)
Description copied from interface: IResourceFilter
Return a boolean indicating whether the specified container should be traversed.

Specified by:
shouldTraverseContainer in interface IResourceFilter
Parameters:
container - the container to be traversed
Returns:
whether the container should be traversed
See Also:
IResourceFilter.shouldTraverseContainer(org.eclipse.core.resources.IContainer)

shouldBeIncluded

public boolean shouldBeIncluded(org.eclipse.core.resources.IFile file)
Description copied from interface: IResourceFilter
Return a boolean indicating whether the specified file should be included.

Specified by:
shouldBeIncluded in interface IResourceFilter
Parameters:
file - the file to be tested
Returns:
whether the file should be included
See Also:
IResourceFilter.shouldBeIncluded(org.eclipse.core.resources.IFile)