Bug 18067 Packages View filters not applied when eclipse restarted
Eclipse F1 1) Create a java project with a .classpath file 2) In the packages view open the filter dialog and uncheck "Hide .* files". 3) Notice that the .classpath file is visible 4) Exit eclipse 5) Launch eclipse again. 6) Notice that the .classpath file is not visible in the packages view 7) Open the filter dialog for the Packages view. Notice that "Hide .* files" is still unchecked.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MemberFilterActionGroup.java
*/	
	public boolean hasMemberFilter(int filterProperty) {
		return fFilter.hasFilter(filterProperty);
	}
	
	/**
	 * Saves the state of the filter actions in a memento.
	 */
	public void saveState(IMemento memento) {
		memento.putString(TAG_HIDEFIELDS, String.valueOf(hasMemberFilter(FILTER_FIELDS)));
		memento.putString(TAG_HIDESTATIC, String.valueOf(hasMemberFilter(FILTER_STATIC)));
		memento.putString(TAG_HIDENONPUBLIC, String.valueOf(hasMemberFilter(FILTER_NONPUBLIC)));
	}
	
	/**
	 * Restores the state of the filter actions from a memento.
	 * @param memento
	 * @param refreshViewer Indicates if the viewer should be refreshed.
	 */	
	public void restoreState(IMemento memento, boolean refreshViewer) {
		boolean set= Boolean.valueOf(memento.getString(TAG_HIDEFIELDS)).booleanValue();
		setMemberFilter(FILTER_FIELDS, set, refreshViewer);
		set= Boolean.valueOf(memento.getString(TAG_HIDESTATIC)).booleanValue();
		setMemberFilter(FILTER_STATIC, set, refreshViewer);
		set= Boolean.valueOf(memento.getString(TAG_HIDENONPUBLIC)).booleanValue();
		setMemberFilter(FILTER_NONPUBLIC, set, refreshViewer);		
	}
	
	/**
	 * Restores the state of the filter actions from a memento.