Bug 24212 [Tasks view] Support read-only tasks in Task list
JDT has now support for generating tasks from source, e.g. //TODO will add a task and show it in the task list. Such tasks can only be edited and changed in the source code. For this reason we would like to have support in the task list for such non-modifiable tasks. For example, we could add a marker attribute "read-only" and if this attribute is set then menu actions to delete or change the task will be disabled.
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
}
	return null;
}
/**
 * Returns name if it is defined, or
 * blank string if not.
 */
public static String getResourceName(IMarker marker) {
	return marker.getResource().getName();
}
/**
 * Returns the severity of the given marker.  Default is SEVERITY_WARNING.
 */
public static int getSeverity(IMarker marker) {
	return marker.getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_WARNING);
}
/**
 * A helper method that returns true if the given
 * marker is marked as complete in the tasklist.
 * Only tasks can be complete.
 */
public static boolean isComplete(IMarker marker) {
	return marker.getAttribute(IMarker.DONE, false);
}
/**
 * Returns whether the given marker is editable.
 * Only tasks which have not been marked as read-only are editable.
 */
public static boolean isEditable(IMarker marker) {
	return isMarkerType(marker, IMarker.TASK) && !isReadOnly(marker);