Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 169916 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java (-1 / +12 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
* Copyright (c) 2004, 2008 Tasktop Technologies and others.
2
 * Copyright (c) 2004, 2008 Tasktop Technologies and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 28-33 Link Here
28
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
28
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
29
import org.eclipse.swt.SWT;
29
import org.eclipse.swt.SWT;
30
import org.eclipse.swt.graphics.Image;
30
import org.eclipse.swt.graphics.Image;
31
import org.eclipse.swt.graphics.Point;
31
import org.eclipse.swt.graphics.Rectangle;
32
import org.eclipse.swt.graphics.Rectangle;
32
import org.eclipse.swt.widgets.Event;
33
import org.eclipse.swt.widgets.Event;
33
import org.eclipse.swt.widgets.Listener;
34
import org.eclipse.swt.widgets.Listener;
Lines 91-96 Link Here
91
				activationImage = taskInactive;
92
				activationImage = taskInactive;
92
			}
93
			}
93
		}
94
		}
95
		if (data instanceof AbstractTask) {
96
			AbstractTask task = (AbstractTask) data;
97
			if (task.isCompleted()) {
98
				Rectangle bounds = ((TreeItem) event.item).getBounds();
99
				int lineY = bounds.y + (bounds.height / 2);
100
				String itemText = ((TreeItem) event.item).getText();
101
				Point extent = event.gc.textExtent(itemText);
102
				event.gc.drawLine(bounds.x, lineY, bounds.x + extent.x, lineY);
103
			}
104
		}
94
		if (data instanceof ITaskContainer) {
105
		if (data instanceof ITaskContainer) {
95
			switch (event.type) {
106
			switch (event.type) {
96
			case SWT.EraseItem: {
107
			case SWT.EraseItem: {
(-)src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
* Copyright (c) 2004, 2008 Tasktop Technologies and others.
2
 * Copyright (c) 2004, 2008 Tasktop Technologies and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 268-274 Link Here
268
			if (((AbstractTask) element).isActive()) {
268
			if (((AbstractTask) element).isActive()) {
269
				return CommonFonts.BOLD;
269
				return CommonFonts.BOLD;
270
			} else if (((AbstractTask) element).isCompleted()) {
270
			} else if (((AbstractTask) element).isCompleted()) {
271
				return CommonFonts.STRIKETHROUGH;
271
				return null;
272
			}
272
			}
273
			for (ITask child : ((ITaskContainer) element).getChildren()) {
273
			for (ITask child : ((ITaskContainer) element).getChildren()) {
274
				if (child.isActive() || (child instanceof ITaskContainer && showHasActiveChild((ITaskContainer) child))) {
274
				if (child.isActive() || (child instanceof ITaskContainer && showHasActiveChild((ITaskContainer) child))) {

Return to bug 169916