Bug 175742 [Markers] contributed marker resolutions only showing first contribution
Debug is trying to add a marker resolution for a quick fix to repair deprecated JRE variables on the build path. When we contribute our resolution generator for org.eclipse.jdt.core.buildpath_problem marker types with a DEPRECATED_VARIABLE id attribute, we find that our resolution is always over-written by the junit generator. It seems that the MarkerHelpRegistry does not allow more than one generator per query result (in our case DEPRECATED_VARIABLE is the query result, same with junit's contribution). I would expect that you could have more than one quickfix for a given issue (in this case what to do about deprecated build path variables).
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java
}
        /* (non-Javadoc)
         * Method declared on Comparator.
         */
        public int compare(Object o1, Object o2) {
            
            MarkerQuery q1 = (MarkerQuery) o1;
            MarkerQuery q2 = (MarkerQuery) o2;
            int size1 = q1.getAttributes().length;
            int size2 = q2.getAttributes().length;
            if (size1 > size2) {
				return -1;
			}
            if (size1 == size2) {
				return 0;
			}
            return 1;
        }
    }
    /* (non-Javadoc)
     * Method declared on IMarkerHelpRegistry.
     */
    public String getHelp(IMarker marker) {
        if (sortedHelpQueries == null) {
            Set set = helpQueries.keySet();
            sortedHelpQueries = new ArrayList(set.size());
            sortedHelpQueries.addAll(set);
            Collections.sort(sortedHelpQueries, new QueryComparator());
        }