Skip to content
Snippets Groups Projects
Commit 054a3a83 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

fixes overlay in navigator

refs 2553
parent 994f1a2d
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,11 @@ public class MarkerService implements IMarkerService, IPersistencyServiceListene
if(top == null) {
return ESeverity.lowest();
}
return getCacheEntry(top).getHighestSeverity(element);
ESeverity sev = getCacheEntry(top).getHighestSeverity(element);
if(element instanceof IConstrained) {
sev = ConstraintsUtils.augmentSeverityWithConstraintSeverity(sev, element);
}
return sev;
}
/** Accesses cache. */
......@@ -261,9 +265,6 @@ public class MarkerService implements IMarkerService, IPersistencyServiceListene
/** Returns the highest severity for the given element. */
public ESeverity getHighestSeverity(EObject element) {
ESeverity sev = highestSeverityMap.get(element);
if(element instanceof IConstrained) {
sev = ConstraintsUtils.augmentSeverityWithConstraintSeverity(sev, element);
}
return sev == null ? ESeverity.lowest() : sev;
}
......@@ -388,7 +389,6 @@ public class MarkerService implements IMarkerService, IPersistencyServiceListene
return getImageDescriptor("icons/info.gif");
case DEBUG:
return getImageDescriptor("icons/debug.gif");
}
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment