Bug 215004 [Markers] New Problems view: 'Group by > Type' broken
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroup.java
import java.util.Iterator;
import java.util.Map;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
import org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities;
import org.eclipse.ui.views.markers.MarkerField;
import org.eclipse.ui.views.markers.MarkerItem;
import org.eclipse.ui.views.markers.MarkerSupportConstants;
/**
 * @since 3.2
 * 
 */
public class MarkerGroup {
	/**
	 * Create a new MarkerGroup from element.
	 * 
	 * @param element
	 * @return MarkerGroup
	 */
	public static MarkerGroup createMarkerGroup(IConfigurationElement element) {
		if (element.getAttribute(MarkerSupportConstants.ATTRIBUTE_ID).equals(
				Util.TYPE_MARKER_GROUPING_ID))
			return new TypeMarkerGroup(element.getAttribute(MarkerSupportRegistry.LABEL));
		return new MarkerGroup(element);
	}
	class AttributeMapping extends EntryMapping {