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/MarkerContentGenerator.java
for (int i = 0; i < displayedFields.length; i++) {
			memento.createChild(TAG_COLUMN_VISIBILITY, displayedFields[i]
					.getConfigurationElement().getAttribute(
							MarkerSupportInternalUtilities.ATTRIBUTE_ID));
		}
	}
	void restoreState(IMemento memento) {
		initDefaults();
		if (memento == null) {
			return;
		}
		
		Integer limits = memento.getInteger(TAG_MARKER_LIMIT);
		if(limits != null) {
			markerLimits = limits.intValue();
		}
		
		if (memento.getChildren(TAG_COLUMN_VISIBILITY).length != 0) {
			IMemento[] visible = memento.getChildren(TAG_COLUMN_VISIBILITY);
			Collection newVisible = new ArrayList();
	
			MarkerField[] all = getAllFields();
			Hashtable allTable = new Hashtable();
	
			for (int i = 0; i < all.length; i++) {
				allTable.put(all[i].getConfigurationElement().getAttribute(
						MarkerSupportInternalUtilities.ATTRIBUTE_ID), all[i]);
			}
	
			for (int i = 0; i < visible.length; i++) {