Bug 42346 [Tasks] Associated task not remaining with associated line
I was following the instructions in the Workbench User Guide...Basic Tutorial/Associated tasks. After creating the task, I inserted lines above it. The task's location column didn't change to reflect the task's new position, so I saved the file, but it still didn't update. Per the tutorial's instructions, I chose "Mark Completed" in the task's context menu and the task moved to a different line. I chose "Delete Completed Tasks" from the context menu and got an info box that said "No user-editable completed tasks to delete". The only way I found to remove the task was to choose "Remove task" from the context menu I got when I right-clicked on the task marker in the marker bar.
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/markers/internal/Util.java
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.views.markers.internal;
import java.text.DateFormat;
import java.util.Date;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
public final class Util {