Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-07 12:35:24 -0400
committermkersten2007-06-07 12:35:24 -0400
commiteed72236553fa8373d9bad507d5103359cd29231 (patch)
tree09ba93ba5a599f5acb63581af1a38499fcf6629c
parent400338fb44c34970e3e3de908394c9b03ff95123 (diff)
downloadorg.eclipse.mylyn.tasks-eed72236553fa8373d9bad507d5103359cd29231.tar.gz
org.eclipse.mylyn.tasks-eed72236553fa8373d9bad507d5103359cd29231.tar.xz
org.eclipse.mylyn.tasks-eed72236553fa8373d9bad507d5103359cd29231.zip
NEW - bug 191350: Recover from wrong stuff added to the task working set
https://bugs.eclipse.org/bugs/show_bug.cgi?id=191350
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingset/TaskWorkingSetPage.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingset/TaskWorkingSetPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingset/TaskWorkingSetPage.java
index 3f5331458..ac5ad7a3c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingset/TaskWorkingSetPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingset/TaskWorkingSetPage.java
@@ -265,7 +265,13 @@ public class TaskWorkingSetPage extends WizardPage implements IWorkingSetPage {
if (workingSet != null) {
items = workingSet.getElements();
if (items != null) {
- tree.setCheckedElements(items);
+ // see bug 191342
+ tree.setCheckedElements(new Object[] {});
+ for (Object item : items) {
+ if(item!=null) {
+ tree.setChecked(item, true);
+ }
+ }
}
}
}

Back to the top