Bug 110087 [Markers] "Filters" menu doesn't remember the last selected filter
When I was playing with this it was a true pain. I'd change somes ettings to see what effect it had and then re-open the dialog to try some other settings I had to re-select my filter (it selects the first one always)...
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/FiltersConfigurationDialog.java
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.forms.events.ExpansionEvent;
import org.eclipse.ui.forms.events.IExpansionListener;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea;
import org.eclipse.ui.views.markers.internal.MarkerMessages;
/**
 * FiltersConfigurationDialog is the dialog for configuring the filters for the
 * 
 * @since 3.3
 * 
 */
public class FiltersConfigurationDialog extends Dialog {
	private Collection filterGroups;
	private CheckboxTableViewer filtersList;
	private GroupFilterConfigurationArea scopeArea = new ScopeArea();
	private MarkerFieldFilterGroup selectedFilterGroup;
	private ScrolledForm form;
	private MarkerContentGenerator contentGenerator;
	private Collection filterAreas;