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/MarkerViewerContentProvider.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java
	 * .lang.Object)
	 */
	public Object[] getChildren(Object parentElement) {
		MarkerSupportItem[] children = ((MarkerSupportItem) parentElement)
				.getChildren();
		return getLimitedChildren(children);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements
	 * (java.lang.Object)
	 */
	public Object[] getElements(Object inputElement) {
		 
		return getLimitedChildren(((Markers) input).getElements());
	}
	/**
	 * Get the children limited by the marker limits.
	 * 
	 * @param children
	 * @return Object[]
	 */
	private Object[] getLimitedChildren(Object[] children) {
		
		int newLength = markersView.getGenerator().getMarkerLimits();