1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

- show external location if it is not empty in problems details view

This commit is contained in:
Alena Laskavaia 2010-04-30 20:48:56 +00:00
parent 2fdba57f07
commit bec406f7dd

View file

@ -70,6 +70,9 @@ public abstract class AbstractCodanProblemDetailsProvider {
public String getStyledProblemMessage() {
String message = escapeForLink(getProblemMessage());
String loc = marker.getResource().getFullPath().toOSString();
String loc2 = marker.getAttribute(IMarker.LOCATION, ""); //$NON-NLS-1$
if (loc2.length()>0)
loc=loc2;
int line = marker.getAttribute(IMarker.LINE_NUMBER, 0);
return message + "\n" + loc + ":" + line; //$NON-NLS-1$//$NON-NLS-2$
}