// at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
// at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
// at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
// at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
if (resource != null) {
IMarker marker = resource.createMarker(BndtoolsConstants.MARKER_BND_PROBLEM);
marker.setAttribute(IMarker.SEVERITY, severity);
marker.setAttribute("$bndType", type);
marker.setAttribute(BuildErrorDetailsHandler.PROP_HAS_RESOLUTIONS, markerData.hasResolutions());
for (Entry<String,Object> attrib : markerData.getAttribs().entrySet())
marker.setAttribute(attrib.getKey(), attrib.getValue());