Bug 177767 [Markers] In task preferences dialog, negative value results in internal error
Build ID: I20070313-1051 Steps To Reproduce: Open the Task View > Preferences... dialog. Enter a negative value for 'limit visible item per group to' Hit OK, Dialog pops up with... An internal error occured during: "Process resource updates". Entering a non-integer string will prevent the OK button from being hit. This should also happen when the number is outside the allowed range.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewPreferenceDialog.java
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
import org.eclipse.ui.preferences.ViewSettingsDialog;
/**
 * The MarkerViewPreferenceDialog is the dialog that is used for preference
 * settings in a markers view.
 * 
 * @since 3.1
 * 
 */
public class MarkerViewPreferenceDialog extends ViewSettingsDialog {
	String enablementKey;
	String limitKey;
	String dialogTitle;
	private IntegerFieldEditor limitEditor;
	private Button enablementButton;
	private Composite editArea;
	/**
	 * Create a new instance of the receiver.
	 * 
	 * @param parentShell
	 * @param enablementPreference
	 *            The key for the enablement preference.
	 * @param limitPreference
	 *            The key for the limit preference.
	 * @param title
	 *            The title for the dialog.