Bug 89463 [search] new search filters (inexact & erasure) should be in view menu where applicable
I20050329-2000 The new search filters (inexact & erasure) should appear directly in the view menu where applicable. Currently the user always has to open the filters dialog to toggle them. Inexact is always applicable. Erasure is applicable for references and occurrences search for generic types and methods.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/MatchFilter.java
public boolean isApplicable(JavaSearchQuery query) {
		QuerySpecification spec= query.getSpecification();
		if (spec instanceof ElementQuerySpecification) {
			ElementQuerySpecification elementSpec= (ElementQuerySpecification) spec;
			Object element= elementSpec.getElement();
			if (!(element instanceof IType))
				return false;
			ITypeParameter[] typeParameters;
			try {
				typeParameters= ((IType)element).getTypeParameters();
			} catch (JavaModelException e) {
				return false;
			}
			return typeParameters != null && typeParameters.length > 0;
		}
		return false;
	}
}
class ErasureMatchFilter extends GenericTypeFilter {