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
renameButton.setEnabled(enabled);
	}
	private MarkerFieldFilterGroup getSelectionFromTable() {
		IStructuredSelection selection = (IStructuredSelection) configsTable
				.getSelection();
		return (MarkerFieldFilterGroup) selection.getFirstElement();
	}
	/**
	 * Set the control and all of it's visibility state to visible.
	 * 
	 * @param enabled
	 * @param control
	 */
	private void setEnabled(boolean enabled, Control control) {
		control.setEnabled(enabled);
		if (control instanceof Composite) {
			Control[] children = ((Composite) control).getChildren();
			for (int i = 0; i < children.length; i++) {
				setEnabled(enabled, children[i]);
			}
		}
	}
	/**
	 * Set the enablement state of the fields to enabled.
	 */
	private void setFieldsEnabled(boolean enabled) {
		setEnabled(enabled, form);
	}
}