1 package net.sourceforge.phpeclipse.resourcesview;
3 import org.eclipse.core.resources.IFolder;
4 import org.eclipse.core.runtime.IAdaptable;
5 import org.eclipse.jface.viewers.Viewer;
6 import org.eclipse.jface.viewers.ViewerFilter;
8 public class PHPViewerFilter extends ViewerFilter {
10 public PHPViewerFilter() {
14 public boolean select(Viewer viewer, Object parentElement, Object element) {
15 if (element instanceof IFolder)
18 IAdaptable adaptable = (IAdaptable) element;
19 PHPElement phpElement = (PHPElement) adaptable.getAdapter(PHPElement.class);
20 if (phpElement != null)