Bug 108017 [Markers] Disabling a marker type disables the whole filter
20050825 When you disable a marker type it disables the whole dialog.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
*/
    protected void removeFilters(ISelection selection){
    	if(selection instanceof IStructuredSelection){
    		List toRemove = ((IStructuredSelection) selection).toList();
    		MarkerFilter[] newFilters = new MarkerFilter[filters.length - toRemove.size()];
    		int index = 0;
    		for (int i = 0; i < filters.length; i++) {
				if(toRemove.contains(filters[i]))
					continue;
				newFilters[index] = filters[i];
				index ++;
			}
    		
    		filters = newFilters;
    		filtersList.refresh();
    		updateUIFromFilter();
    	}
    }
	/**
     * Create a new filter called newName.
     * @param newName
     */
	private void createNewFilter(String newName){
		MarkerFilter[] newFilters = new MarkerFilter[filters.length + 1];
		System.arraycopy(filters,0,newFilters,0,filters.length);
		MarkerFilter filter = newFilter(newName);
		newFilters[filters.length] = filter;
		filters = newFilters;
		filtersList.refresh();
	}