Bug 5231 Add search for field read and write references
The UI should support the following new JDT Core feature: Search for field read and field write references. Two new constants have been added on IJavaSearchConstants to be used when creating a field reference search pattern: - READ_REFERENCES: the search results contain *only* read access to a field. - WRITE_REFERENCES: the search results contain *only* write access to a field. If REFERENCES is used, then search results contain both read and write accesss to a field.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
public static final String EXTENSION_POINT_ID= "org.eclipse.jdt.ui.JavaSearchPage"; 
	private static List fgPreviousSearchPatterns= new ArrayList(20);
	private Combo fPattern;
	private String fInitialPattern;
	private boolean fFirstTime= true;
	private ISearchPageContainer fContainer;
	
	private Button[] fSearchFor;
	private String[] fSearchForText= {
		SearchMessages.getString("SearchPage.searchFor.type"), 
		SearchMessages.getString("SearchPage.searchFor.method"), 
		SearchMessages.getString("SearchPage.searchFor.package"), 
		SearchMessages.getString("SearchPage.searchFor.constructor"), 
		SearchMessages.getString("SearchPage.searchFor.field") }; 
	private Button[] fLimitTo;
	private String[] fLimitToText= {
		SearchMessages.getString("SearchPage.limitTo.declarations"), 
		SearchMessages.getString("SearchPage.limitTo.implementors"), 
		SearchMessages.getString("SearchPage.limitTo.references"), 
		SearchMessages.getString("SearchPage.limitTo.allOccurrences")}; 
	
	private IJavaElement fJavaElement;
	
	private static class SearchPatternData {