Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-07-13 19:57:43 -0400
committermkersten2005-07-13 19:57:43 -0400
commit35389562b8be0a05c2d3bb3e7062b6524e48ad3a (patch)
treecf481419e3648d1f4e2de474af236a625de48639 /org.eclipse.mylyn.tasks.ui
parent374d6e2e448b99cc69f9280c337a87f1356cb55f (diff)
downloadorg.eclipse.mylyn.tasks-35389562b8be0a05c2d3bb3e7062b6524e48ad3a.tar.gz
org.eclipse.mylyn.tasks-35389562b8be0a05c2d3bb3e7062b6524e48ad3a.tar.xz
org.eclipse.mylyn.tasks-35389562b8be0a05c2d3bb3e7062b6524e48ad3a.zip
Fixed select
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
index b967866df..802793a4d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
@@ -277,13 +277,15 @@ public class TaskListView extends ViewPart {
@Override
public boolean select(Viewer viewer, Object parentElement, Object element) {
if (element instanceof ITaskListElement) {
- if(((ITaskListElement)element).hasCorrespondingActivatableTask()){
+ if(element instanceof ITask && ((ITaskListElement)element).hasCorrespondingActivatableTask()){
ITask task = ((ITaskListElement)element).getCorrespondingActivatableTask();
if(task != null){
return !task.isCompleted();
} else {
return true;
}
+ } else {
+ return true;
}
}
return false;

Back to the top