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 limits;
		if (limitButton.getSelection())
			limits = limitSpinner.getSelection();
		else
			limits = -1;
		generator.setMarkerLimits(limits);
		Iterator filterGroupIterator = filterGroups.iterator();
		while (filterGroupIterator.hasNext()) {
			MarkerFieldFilterGroup group = (MarkerFieldFilterGroup) filterGroupIterator
					.next();
			group.setEnabled(configsTable.getChecked(group));
		}
		storeConfiguration();
		saveDialogSettings();
		super.okPressed();
	}
	protected void performDefaults() {
		andFilters = false;
		andButton.setSelection(andFilters);
		orButton.setSelection(!andFilters);
		filterGroups.clear();
		filterGroups.addAll(generator.getDeclaredFilters());
		configsTable.refresh();
		configsTable.setSelection(new StructuredSelection(
				filterGroups.size() > 1 ? filterGroups.iterator().next()
						: new Object[0]));
		IPreferenceStore preferenceStore = IDEWorkbenchPlugin.getDefault()
				.getPreferenceStore();
		boolean useMarkerLimits = preferenceStore
				.getBoolean(IDEInternalPreferences.USE_MARKER_LIMITS);