diff --git a/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/AllTypesCache.java b/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/AllTypesCache.java index 5684db06e55..f832bfaccfb 100644 --- a/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/AllTypesCache.java +++ b/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/AllTypesCache.java @@ -98,7 +98,7 @@ public class AllTypesCache { super(monitor); } - public IMatch createMatch(Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) + public IMatch createMatch(Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) throws CoreException { TypeInfo result= new TypeInfo(); return super.createMatch( result, fileResource, start, end, node ); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchResultCollector.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchResultCollector.java deleted file mode 100644 index c7896da4ee8..00000000000 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchResultCollector.java +++ /dev/null @@ -1,49 +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.internal.ui.opentype; - -import org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate; -import org.eclipse.cdt.core.search.BasicSearchResultCollector; -import org.eclipse.cdt.core.search.IMatch; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; - -public class TypeSearchResultCollector extends BasicSearchResultCollector { - - private IProgressMonitor monitor; - - public TypeSearchResultCollector() { - super(); - } - - public IProgressMonitor getProgressMonitor() { - return monitor; - } - - public void setProgressMonitor(IProgressMonitor monitor) { - this.monitor = monitor; - } - - public IMatch createMatch(Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) - { - TypeSearchMatch result = new TypeSearchMatch(); - return super.createMatch( result, fileResource, start, end, node ); - } - - public boolean acceptMatch(IMatch match) throws CoreException { - // filter out unnamed structs - TypeSearchMatch result = (TypeSearchMatch) match; - if (result.getName().length() == 0) - return false; - else - return super.acceptMatch(match); - } -}