IMarker exists = updateTaskTags2_checkExisting(i, tagIndex, line, markers);
if (exists!=null) {
markers.remove(exists);
continue;
}
IMarker marker = docFile.createMarker(IMarker.TASK);
//Once we have a marker object, we can set its attributes
marker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_NORMAL);
String msg = line.substring(line.indexOf(tag), Math.min(tagIndex+MAX_TASK_MSG_LENGTH, line.length()-1));
marker.setAttribute(IMarker.MESSAGE, msg);
marker.setAttribute(IMarker.LINE_NUMBER, i);