* based upon the properties of the underlying marker.
*/
protected void initialize() {
fImageType= NO_IMAGE;
IMarker marker= getMarker();
if (MarkerUtilities.isMarkerType(marker, IBreakpoint.BREAKPOINT_MARKER)) {
if (fPresentation == null)
fPresentation= DebugUITools.newDebugModelPresentation();
setImage(null); // see bug 32469
setLayer(4);
fImageType= BREAKPOINT_IMAGE;
fType= AnnotationType.UNKNOWN;
} else {
fType= AnnotationType.UNKNOWN;
if (marker.exists()) {
try {
if (marker.isSubtypeOf(Constants.PROBLEM_MARKER)) {
int severity= marker.getAttribute(IMarker.SEVERITY, -1);
switch (severity) {
case IMarker.SEVERITY_ERROR:
fType= AnnotationType.ERROR;
break;
case IMarker.SEVERITY_WARNING:
fType= AnnotationType.WARNING;
break;
}
} else if (marker.isSubtypeOf(IMarker.TASK))
fType= AnnotationType.TASK;
else if (marker.isSubtypeOf(IMarker.BOOKMARK))
fType= AnnotationType.BOOKMARK;
else if (marker.isSubtypeOf(IMarker.TEXT))
fType=AnnotationType.OCCURRENCE;
} catch(CoreException e) {
//PerlDebugPlugin.log(e);
}