Bug 339347 [Markers] Can't toggle item limits in Problems view any more without losing limit
I20110308-2000 I can't toggle item limits in Problems view any more without losing limits. After I've disabled the limits, the next time I enable limits, the value is "1". The stored value should not be changed.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersConfigurationDialog.java
int markerLimits = useMarkerLimits ? preferenceStore
				.getInt(IDEInternalPreferences.MARKER_LIMITS_VALUE) : 100;
		limitButton.setSelection(useMarkerLimits);
		limitsLabel.setEnabled(useMarkerLimits);
		limitSpinner.setEnabled(useMarkerLimits);
		limitSpinner.setSelection(markerLimits);
		updateRadioButtonsFromTable();
	}
	/**
	 * Remove the filters in selection.
	 * 
	 * @param selection
	 */
	private void removeFilters(ISelection selection) {
		filterGroups.remove(((IStructuredSelection) selection)
				.getFirstElement());
		configsTable.refresh();
		updateRadioButtonsFromTable();
	}
	/**
	 * Save the dialog settings for the receiver.
	 */
	private void saveDialogSettings() {
		IDialogSettings settings = getDialogSettings();
		if (selectedFilterGroup != null)
			settings.put(SELECTED_FILTER_GROUP, selectedFilterGroup.getName());
	}
	private void updateButtonEnablement(MarkerFieldFilterGroup group) {
		boolean enabled = group != null && !group.isSystem();
		removeButton.setEnabled(enabled);