Bug 107978 [Markers] New filter is not selected in problems filters dialog
20050823 If you add a new filter it is not selected in the problems filters dialog
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
/**
     * Get the currently selected marker filter if there is only one
     * selection.
     * @return MarkerFilter or <code>null</code>.
     */
    protected MarkerFilter getSelectedFilter() {
    	
    	if(selectedFilters.length == 1)
    		return selectedFilters[0];
    	return null;
	}
	private IStructuredContentProvider getContentProvider() {
        return new IStructuredContentProvider() {
            public Object[] getElements(Object inputElement) {
            	MarkerFilter selected = getSelectedFilter();
            	if(selected == null)
            		return new Object[0];
            	
                return getAllMarkerTypes(selected);
            }
            public void dispose() {
            }
            public void inputChanged(Viewer viewer, Object oldInput,
                    Object newInput) {
            }
        };
    }
    /**
     * This method is intended to be overridden by subclasses of FiltersDialog. The
     * attributes area will be created just above the Restore Defaults button.