Bug 60715 Can't switch (read, ...) filters after search for method
I200404281424 + zrh-plugins from 20040430_1758: Can't switch (read, ...) filters after search for method - Search for references to a field - check "Filter Reads" - Search for refs to method (a) Reads filter filters all matches Read filter should have no effect on method references (b) Cannot uncheck read filter since menu entry is disabled. Workaround is to search for field refs, uncheck filter, go back to method refs search.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/NewSearchResultCollector.java
super();
		fSearch= search;
		fIgnorePotentials= ignorePotentials;
	}
	
	public void acceptSearchMatch(SearchMatch match) throws CoreException {
		IJavaElement enclosingElement= (IJavaElement) match.getElement();
		if (enclosingElement != null) {
			if (fIgnorePotentials && (match.getAccuracy() == SearchMatch.A_INACCURATE))
				return;
			boolean isWriteAccess= false;
			boolean isReadAccess= false;
			if (match instanceof FieldReferenceMatch) {
				FieldReferenceMatch fieldRef= ((FieldReferenceMatch)match);
				isWriteAccess= fieldRef.isWriteAccess();
				isReadAccess= fieldRef.isReadAccess();
			}
			fSearch.addMatch(new JavaElementMatch(enclosingElement, match.getOffset(), match.getLength(), match.getAccuracy(), isWriteAccess, isWriteAccess, match.isInsideDocComment()));
		}
	}
	public void beginReporting() {
	}
	public void endReporting() {
	}
	public void enterParticipant(SearchParticipant participant) {
	}
	public void exitParticipant(SearchParticipant participant) {
	}
}