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
new MessageFormat(TaskListMessages.getString("TaskList.line")); ;
		
	private static MessageFormat lineAndLocation =
		new MessageFormat(TaskListMessages.getString("TaskList.lineAndLocation")); 
	
	static {
		createImageDescriptors();
	}
	
	
/**
 * Don't allow instantiation.
 */
private MarkerUtil() {
}
/**
 * Creates an image descriptor for the image file referred to by the
 * given relative path (relative to the icons directory for the plug-in).
 */
static ImageDescriptor createImageDescriptor(String relativePath) {
	String iconPath = "icons/full/";
	try {
		URL URL_BASIC = TaskList.getPlugin().getDescriptor().getInstallURL();
		URL url = new URL(URL_BASIC, iconPath + relativePath);
		return ImageDescriptor.createFromURL(url);
	} catch (MalformedURLException e) {
		Assert.isTrue(false);
		return null;
	}
}