1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 QNX Software Systems and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * QNX Software Systems - Initial API and implementation
10 *******************************************************************************/
12 package org.eclipse.cdt.internal.ui.filters;
14 import org.eclipse.cdt.core.model.IMacro;
15 import org.eclipse.jface.viewers.Viewer;
16 import org.eclipse.jface.viewers.ViewerFilter;
21 public class MacroDirectiveFilter extends ViewerFilter {
27 public boolean select(Viewer viewer, Object parent, Object element) {
28 return !(element instanceof IMacro);