Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-08-23 17:40:27 -0400
committersminto2005-08-23 17:40:27 -0400
commitdf2c78f6385f233b84574a0ed962b3a01056d30d (patch)
tree7017c091d9ba8f6816ec6cea408088f4d75fd9ec
parent930606e3e86451f9c95993dc40fc24a6bdf4de5a (diff)
downloadorg.eclipse.mylyn.tasks-df2c78f6385f233b84574a0ed962b3a01056d30d.tar.gz
org.eclipse.mylyn.tasks-df2c78f6385f233b84574a0ed962b3a01056d30d.tar.xz
org.eclipse.mylyn.tasks-df2c78f6385f233b84574a0ed962b3a01056d30d.zip
updated the selection with right click to work better
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
index 883b25994..b17814a37 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
@@ -789,13 +789,10 @@ public class TaskListView extends ViewPart {
Tree t = getViewer().getTree();
TreeItem item = t.getItem(new Point(e.x, e.y));
if(e.button == 3 && item != null){
- TreeItem[] items = {item};
- t.setSelection(items);
+ getViewer().setSelection(new StructuredSelection(item.getData()));
} else if(item == null){
- TreeItem[] items = {};
- t.setSelection(items);
+ getViewer().setSelection(new StructuredSelection());
}
-
}
public void mouseUp(MouseEvent e) {}
@@ -1015,7 +1012,7 @@ public class TaskListView extends ViewPart {
}
}
}
-
+
private void updateActionEnablement(Action action, ITaskListElement element){
if(element instanceof Task){

Back to the top