Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-10-26 14:01:39 -0400
committermkersten2005-10-26 14:01:39 -0400
commitbc950e599dbdb63ac0d06e13a94f5816cb46a23b (patch)
tree2ae1b988710c5bcca021006003d60406d9aca41b
parent0d11bd44261c1cc06a7a9e516b2338f2dcc82e49 (diff)
downloadorg.eclipse.mylyn.tasks-bc950e599dbdb63ac0d06e13a94f5816cb46a23b.tar.gz
org.eclipse.mylyn.tasks-bc950e599dbdb63ac0d06e13a94f5816cb46a23b.tar.xz
org.eclipse.mylyn.tasks-bc950e599dbdb63ac0d06e13a94f5816cb46a23b.zip
minor
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskActivateAction.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskDeactivateAction.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java8
3 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskActivateAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskActivateAction.java
index d2ac31c36..b147f04cb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskActivateAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskActivateAction.java
@@ -50,6 +50,7 @@ public class TaskActivateAction extends Action implements IViewActionDelegate {
public void run(ITask task) {
if (task != null) {
MylarTasklistPlugin.getTaskListManager().activateTask(task);
+ TaskListView.getDefault().getViewer().refresh();
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskDeactivateAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskDeactivateAction.java
index ea2276d29..2a5c15826 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskDeactivateAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskDeactivateAction.java
@@ -39,6 +39,7 @@ public class TaskDeactivateAction extends Action {
try {
if (task != null) {
MylarTasklistPlugin.getTaskListManager().deactivateTask(task);
+ TaskListView.getDefault().getViewer().refresh();
TaskListView.getDefault().closeTaskEditors(task, page);
}
} catch (Exception e) {
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 3018c37f0..f3a8bc4d5 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
@@ -31,12 +31,12 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.CheckboxCellEditor;
import org.eclipse.jface.viewers.ComboBoxCellEditor;
+import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.ICellModifier;
-import org.eclipse.jface.viewers.IOpenListener;
+import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.OpenEvent;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TextCellEditor;
@@ -1133,8 +1133,8 @@ public class TaskListView extends ViewPart {
}
private void hookOpenAction() {
- getViewer().addOpenListener(new IOpenListener() {
- public void open(OpenEvent event) {
+ getViewer().addDoubleClickListener(new IDoubleClickListener() {
+ public void doubleClick(DoubleClickEvent event) {
openTaskEditor.run();
}
});

Back to the top