The order of the elements in the Marker View should be definable (to make sense)
Goal: as a developer I want to be able to specify a certain order of the element types in the Marker View. For example, the FATAL and ERROR elements should come first in the table/view, because they are the most important ones, and shouldn't be covert by the mass of WARNING or INFO elements in the beginning of the table.
Currently, an iteration through a hashmap is used to know which element types should be displayed. This also means that the order is kind of random or at least not always identical to the insertion order.
Two options exist:
- We change the HashMap in general to a LinkedHashMap and define with the insertion order the display/table order, but this would affect several classes/files.
- We transform the hashmap in a list or a LinkedHashMap with our wanted order at the end when it is used to decided which violations (of which types) are returned. Here, we would only need to manipulate one file, the MarkerViewContentProvider.