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
limitButton = new Button(parent, SWT.CHECK);
		limitButton.setText(MarkerMessages.MarkerPreferences_MarkerLimits);
		limitButton.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				limitsLabel.setEnabled(limitButton.getSelection());
				limitSpinner.setEnabled(limitButton.getSelection());
			}
		});
		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayout(new GridLayout(2, false));
		GridData compositeData = new GridData(GridData.FILL_HORIZONTAL);
		compositeData.horizontalIndent = 20;
		composite.setLayoutData(compositeData);
		limitsLabel = new Label(composite, SWT.NONE);
		limitsLabel.setText(MarkerMessages.MarkerPreferences_VisibleItems);
		limitSpinner = new Spinner(composite, SWT.BORDER);
		limitSpinner.setMinimum(1);
		limitSpinner.setMaximum(Integer.MAX_VALUE);
		limitSpinner.setIncrement(1);
		limitSpinner.setPageIncrement(100);
		GridData spinnerData = new GridData();
		spinnerData.minimumWidth = convertWidthInCharsToPixels(6);
		limitSpinner.setLayoutData(spinnerData);
	}
	/**
	 * @param parent
	 */
	private void createConfigs(Composite parent) {
		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayout(new GridLayout(2, false));