Bug 53839 new search: remember the sort options
I20040302 the group-by capabilties and the buttons are great. So good that I would want the group-by setting to be remembered across sessions.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java
menu.add(new Separator(IContextMenuConstants.GROUP_GENERATE));
		menu.add(new Separator(IContextMenuConstants.GROUP_SEARCH));
		menu.add(new Separator(IContextMenuConstants.GROUP_BUILD));
		menu.add(new Separator(IContextMenuConstants.GROUP_ADDITIONS));
		menu.add(new Separator(IContextMenuConstants.GROUP_VIEWER_SETUP));
		menu.add(new Separator(IContextMenuConstants.GROUP_PROPERTIES));
	}
	/**
	 * Returns the template context type registry for the java plugin.
	 * 
	 * @return the template context type registry for the java plugin
	 */
	public static ContextTypeRegistry getTemplateContextRegistry() {
		if (fgContextTypeRegistry == null) {
			fgContextTypeRegistry= new ContextTypeRegistry();
			
			fgContextTypeRegistry.addContextType(new JavaContextType());
			fgContextTypeRegistry.addContextType(new JavaDocContextType());
			CodeTemplateContextType.registerContextTypes(fgContextTypeRegistry);
		}
		return fgContextTypeRegistry;
	}
	/**
	 * @see AbstractUIPlugin#initializeDefaultPreferences
	 */
	protected void initializeDefaultPreferences(IPreferenceStore store) {
		super.initializeDefaultPreferences(store);
		MarkerAnnotationPreferences.initializeDefaultValues(store);		
		PreferenceConstants.initializeDefaultValues(store);
	}