Bug 212728 [Markers] New Tasks view not showing completion icon
I20071212-0010 The new Tasks view does not allow to mark a task as completed by clicking into the corresponding field.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/MarkerCompletionField.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getImage(org.eclipse.ui.internal.provisional.views.markers.MarkerItem)
	 */
	public Image getImage(MarkerItem item) {
		switch (getDoneConstant(item)) {
		case DONE:
			return getCompleteImage();
		case NOT_DONE:
			return MarkerSupportInternalUtilities
					.createImage(INCOMPLETE_IMAGE_PATH);
		default:
			return null;
		}
	}
	/**
	 * Return the constant that indicates whether or not the receiver is done
	 * 
	 * @param item
	 * @return 1 if it is done, 0 if it not and -1 if it cannot be determined.
	 */
	private int getDoneConstant(MarkerItem item) {
		int done = UNDEFINED;
		if (item.isConcrete()
				&& item.getAttributeValue(IMarker.USER_EDITABLE, true)) {
			done = 0;
			if (item.getAttributeValue(IMarker.DONE, false)) {
				done = 1;
			}