/******************************************************************************* * Copyright (c) 2015 Dawid Pakuła 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: * Dawid Pakuła - initial API and implementation *******************************************************************************/ package org.eclipse.php.internal.ui.filters; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.php.internal.ui.outline.PHPOutlineContentProvider.UseStatementsNode; public class UseStatementsFilter extends ViewerFilter { public UseStatementsFilter() { } @Override public boolean select(Viewer viewer, Object parentElement, Object element) { if (element instanceof UseStatementsNode || parentElement instanceof UseStatementsNode) { return false; } return true; } }