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
/*******************************************************************************
 * Copyright (c) 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.views.markers.internal;
import org.eclipse.jface.preference.IntegerFieldEditor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;