Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-03-09 23:19:37 +0000
committerspingel2009-03-09 23:19:37 +0000
commitc32e026aebe9e1d6783b4c00fbb5ec1ea9e3d7ce (patch)
tree2d8c671ebc6e65341a417a8f699af1fde51aeef0
parent037803b3040afbcf4baca926f0bce0342508de88 (diff)
downloadorg.eclipse.mylyn.tasks-c32e026aebe9e1d6783b4c00fbb5ec1ea9e3d7ce.tar.gz
org.eclipse.mylyn.tasks-c32e026aebe9e1d6783b4c00fbb5ec1ea9e3d7ce.tar.xz
org.eclipse.mylyn.tasks-c32e026aebe9e1d6783b4c00fbb5ec1ea9e3d7ce.zip
NEW - bug 267102: link with editor causes org.eclipse.swt.SWTError: Item not added
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267102
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
index a2234bc81..3c0d14680 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
@@ -1590,6 +1590,8 @@ public class TaskListView extends ViewPart implements IPropertyChangeListener, I
private DelayedRefreshJob refreshJob;
+ private boolean itemNotFoundExceptionLogged;
+
public void setInRenameAction(boolean b) {
isInRenameAction = b;
}
@@ -1680,10 +1682,14 @@ public class TaskListView extends ViewPart implements IPropertyChangeListener, I
try {
getViewer().setSelection(selection, true);
} catch (SWTError e) {
- // It's probably not worth displaying this to the user since the item
- // is not there in this case, so consider removing.
- StatusHandler.log(new Status(IStatus.INFO, TasksUiPlugin.ID_PLUGIN, "Could not link Task List with editor", //$NON-NLS-1$
- e));
+ if (!itemNotFoundExceptionLogged) {
+ itemNotFoundExceptionLogged = true;
+ // It's probably not worth displaying this to the user since the item
+ // is not there in this case, so consider removing.
+ StatusHandler.log(new Status(IStatus.WARNING, TasksUiPlugin.ID_PLUGIN,
+ "Could not link Task List with editor", //$NON-NLS-1$
+ e));
+ }
}
}

Back to the top