blob: 33c6369cb57f3bb6682c5aa058684a1ed6e21eb1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 University of Illinois at Urbana-Champaign 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:
* UIUC - Initial API and implementation
*******************************************************************************/
package org.eclipse.photran.internal.core.resources;
import org.eclipse.core.resources.IResource;
/**
* A resource filter that accepts all resources, as long as they are accessible.
*
* @author Jeff Overbey
*
* @see IResourceFilter
* @see IResource#isAccessible()
*/
public class DefaultResourceFilter implements IResourceFilter
{
public boolean shouldProcess(IResource resource)
{
return resource.isAccessible();
}
public String getError(IResource resource)
{
return Messages.bind(Messages.DefaultResourceFilter_ResourceIsNotAccessible,
resource.getName());
}
}