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
*/
	public MarkerViewPreferenceDialog(Shell parentShell,
			String enablementPreference, String limitPreference, String title) {
		super(parentShell);
		enablementKey = enablementPreference;
		limitKey = limitPreference;
		dialogTitle = title;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
	 */
	protected void configureShell(Shell newShell) {
		super.configureShell(newShell);
		newShell.setText(dialogTitle);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
	 */
	protected Control createDialogArea(Composite parent) {
		Composite topComposite = (Composite) super.createDialogArea(parent);
		boolean checked = IDEWorkbenchPlugin.getDefault().getPreferenceStore()
				.getBoolean(enablementKey);
		enablementButton = new Button(topComposite, SWT.CHECK);
		enablementButton.setText(MarkerMessages.MarkerPreferences_MarkerLimits);
		enablementButton.setSelection(checked);
		editArea = new Composite(topComposite, SWT.NONE);