|
Lines 20-25
Link Here
|
| 20 |
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin; |
20 |
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin; |
| 21 |
import org.eclipse.swt.SWT; |
21 |
import org.eclipse.swt.SWT; |
| 22 |
import org.eclipse.swt.graphics.Image; |
22 |
import org.eclipse.swt.graphics.Image; |
|
|
23 |
import org.eclipse.swt.graphics.Point; |
| 23 |
import org.eclipse.swt.graphics.Rectangle; |
24 |
import org.eclipse.swt.graphics.Rectangle; |
| 24 |
import org.eclipse.swt.widgets.Event; |
25 |
import org.eclipse.swt.widgets.Event; |
| 25 |
import org.eclipse.swt.widgets.Listener; |
26 |
import org.eclipse.swt.widgets.Listener; |
|
Lines 121-126
Link Here
|
| 121 |
if (data instanceof AbstractTaskContainer) { |
122 |
if (data instanceof AbstractTaskContainer) { |
| 122 |
drawSyncronizationImage((AbstractTaskContainer) data, event); |
123 |
drawSyncronizationImage((AbstractTaskContainer) data, event); |
| 123 |
} |
124 |
} |
|
|
125 |
|
| 126 |
if (data instanceof AbstractTask) { |
| 127 |
AbstractTask task = (AbstractTask) data; |
| 128 |
if (task.isCompleted()) { |
| 129 |
Rectangle bounds = ((TreeItem) event.item).getBounds(); |
| 130 |
int lineY = bounds.y + (bounds.height / 2); |
| 131 |
String itemText = ((TreeItem) event.item).getText(); |
| 132 |
Point extent = event.gc.textExtent(itemText); |
| 133 |
// event.gc.setForeground(TaskListColorsAndFonts.COLOR_SPELLING_ERROR); |
| 134 |
// event.gc.drawText(task.getTaskKey() + ": " + task.getSummary(), aa.x, aa.y); |
| 135 |
event.gc.drawLine( bounds.x , lineY , bounds.x + extent.x, lineY); |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 124 |
if (tweakClipping) { |
139 |
if (tweakClipping) { |
| 125 |
event.gc.setClipping(clipping); |
140 |
event.gc.setClipping(clipping); |
| 126 |
} |
141 |
} |