upload tizen1.0 source
[sdk/ide/product.git] / org.eclipse.cdt.ui / src / org / eclipse / cdt / internal / ui / filters / MacroDirectiveFilter.java
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
7  *
8  * Contributors:
9  *     QNX Software Systems - Initial API and implementation
10  *******************************************************************************/
11
12 package org.eclipse.cdt.internal.ui.filters;
13
14 import org.eclipse.cdt.core.model.IMacro;
15 import org.eclipse.jface.viewers.Viewer;
16 import org.eclipse.jface.viewers.ViewerFilter;
17
18 /**
19  * Filter
20  */
21 public class MacroDirectiveFilter extends ViewerFilter {
22
23         /*
24          * @see ViewerFilter
25          */
26         @Override
27         public boolean select(Viewer viewer, Object parent, Object element) {
28                 return !(element instanceof IMacro);
29         }
30
31 }