Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 19:21:28 +0000
committermkersten2007-06-22 19:21:28 +0000
commitf93f376d5acd6297e0048574dfff7ff480dbc2bc (patch)
treebe65995cc51b9589a44262060ab45f9e976549da
parent170abc85208edbd836e81a27672acae4ce5ef5f6 (diff)
downloadorg.eclipse.mylyn.tasks-f93f376d5acd6297e0048574dfff7ff480dbc2bc.tar.gz
org.eclipse.mylyn.tasks-f93f376d5acd6297e0048574dfff7ff480dbc2bc.tar.xz
org.eclipse.mylyn.tasks-f93f376d5acd6297e0048574dfff7ff480dbc2bc.zip
RESOLVED - bug 193998: Unable to edit working sets
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193998
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementFactory.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementFactory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementFactory.java
index 5e2abfcdc..047f12a4f 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementFactory.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementFactory.java
@@ -11,6 +11,7 @@ package org.eclipse.mylyn.internal.tasks.ui.workingsets;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.tasks.core.AbstractTaskContainer;
import org.eclipse.mylyn.tasks.core.TaskList;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
@@ -42,9 +43,13 @@ public class TaskWorkingSetElementFactory implements IElementFactory {
}
String projectHandle = memento.getString(HANDLE_PROJECT);
if (projectHandle != null) {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectHandle);
- if (project != null) {
- return project;
+ try {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectHandle);
+ if (project != null) {
+ return project;
+ }
+ } catch (Throwable t) {
+ StatusManager.log("Could not not determine project for handle: " + projectHandle, t);
}
}
return null;

Back to the top