diff options
Diffstat (limited to 'core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/TypeInfoFilter.java')
-rw-r--r-- | core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/TypeInfoFilter.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/TypeInfoFilter.java b/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/TypeInfoFilter.java deleted file mode 100644 index 81a24f9209b..00000000000 --- a/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/TypeInfoFilter.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 QNX Software Systems and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * QNX Software Systems - initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.ui.browser.typeinfo; - -import org.eclipse.cdt.internal.ui.browser.util.ArrayUtil; - -/** - * The default type filter. - */ -public class TypeInfoFilter implements ITypeInfoFilter { - - public int[] getCElementTypes() { - return TypeInfo.getAllCElementTypes(); - } - - public TypeInfoFilter() { - } - - protected boolean hideSystemTypes() { - return true; - } - - public boolean match(ITypeInfo info) { - // check if type is handled - if (!ArrayUtil.contains(getCElementTypes(), info.getElementType())) - return false; - - // filter out low-level system types eg __FILE - //TODO make this a preferences option - if (hideSystemTypes() && info.isSystemType()) - return false; - - return true; - } -} |