Bug 167170 [Markers] Need to check for duplicate filter names
M3 It is currently possible to enter duplicate filter names
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
protected final void updateFilterFromUI() {
		MarkerFilter filter = getSelectedFilter();
		if (filter == null) {
			updateEnabledState(false);
			return;
		}
		updateFilterFromUI(filter);
	}
	/**
	 * Update the selected filter from the UI.
	 * 
	 * @param filter
	 */
	protected void updateFilterFromUI(MarkerFilter filter) {
		filter.setSelectedTypes(getSelectedTypes());
		if (selectedResourceButton.getSelection()) {
			filter.setOnResource(MarkerFilter.ON_SELECTED_ONLY);
		} else if (selectedResourceAndChildrenButton.getSelection()) {
			filter.setOnResource(MarkerFilter.ON_SELECTED_AND_CHILDREN);
		} else if (anyResourceInSameProjectButton.getSelection()) {
			filter.setOnResource(MarkerFilter.ON_ANY_IN_SAME_CONTAINER);
		} else if (workingSetGroup.getSelection()) {
			filter.setOnResource(MarkerFilter.ON_WORKING_SET);
		} else {
			filter.setOnResource(MarkerFilter.ON_ANY);
		}
		filter.setWorkingSet(workingSetGroup.getWorkingSet());
	}
	/**
	 * Updates the UI state from the given filter.