Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-02 15:36:37 -0500
committermkersten2005-11-02 15:36:37 -0500
commit435ee86733ab07ed203054b915f86f1051f2246f (patch)
treedaee5f4a0d035a0c63f1bbc946befbfb9b802d13 /org.eclipse.mylyn.tasks.ui
parent27a3810e91e8781d656968f52e4e657d12562495 (diff)
downloadorg.eclipse.mylyn.tasks-435ee86733ab07ed203054b915f86f1051f2246f.tar.gz
org.eclipse.mylyn.tasks-435ee86733ab07ed203054b915f86f1051f2246f.tar.xz
org.eclipse.mylyn.tasks-435ee86733ab07ed203054b915f86f1051f2246f.zip
Fixed Bugzilla Bug 111708: improve UI for opening tasks and contexts
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java15
2 files changed, 13 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index 50f6988f4..05b4d8a02 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -71,7 +71,7 @@
<extension point="org.eclipse.ui.views">
- <view name="Task List"
+ <view name="Mylar Tasks"
icon="icons/eview16/task-list.gif"
category="org.eclipse.mylar"
class="org.eclipse.mylar.tasklist.ui.views.TaskListView"
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 f6c76a4a2..a6add179e 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
@@ -946,9 +946,18 @@ public class TaskListView extends ViewPart {
element = (ITaskListElement) selectedObject;
}
- if (!(element instanceof ITaskListCategory) && !(element instanceof IQuery)) {
- manager.add(activateAction);
- manager.add(deactivateAction);
+ if ((element instanceof ITask) || (element instanceof IQueryHit)) {
+ ITask task = null;
+ if (element instanceof IQueryHit) {
+ task = ((IQueryHit)element).getOrCreateCorrespondingTask();
+ } else {
+ task = (ITask)element;
+ }
+ if (task.isActive()) {
+ manager.add(deactivateAction);
+ } else {
+ manager.add(activateAction);
+ }
}
addAction(openAction, manager, element);
addAction(completeTask, manager, element);

Back to the top