Bug 45496 Global Search Dialog needs Persistent History Lists
Global Search Dialog should keep persistent history lists. At the moment all settings are lost after worckbench shutdown. I would recommend to limit the number of entries saved to 10.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
public int getScope() {
			return scope;
		}
		public void setSearchFor(int searchFor) {
			this.searchFor= searchFor;
		}
		public int getSearchFor() {
			return searchFor;
		}
		public void setWorkingSets(IWorkingSet[] workingSets) {
			this.workingSets= workingSets;
		}
		public IWorkingSet[] getWorkingSets() {
			return workingSets;
		}
	}
	
	public static final String PARTICIPANT_EXTENSION_POINT= "org.eclipse.jdt.ui.queryParticipants"; 
	public static final String EXTENSION_POINT_ID= "org.eclipse.jdt.ui.JavaSearchPage"; 
	public static final String PREF_SEARCH_JRE= "org.eclipse.jdt.ui.searchJRE"; 
	
	
	private final static String PAGE_NAME= "JavaSearchPage"; 
	private final static String STORE_CASE_SENSITIVE= PAGE_NAME + "CASE_SENSITIVE"; 
	private static List fgPreviousSearchPatterns= new ArrayList(20);
	
	private SearchPatternData fInitialData;
	private IJavaElement fJavaElement;
	private boolean fFirstTime= true;
	private IDialogSettings fDialogSettings;