diff options
author | Steffen Pingel | 2012-04-10 00:31:43 +0000 |
---|---|---|
committer | Steffen Pingel | 2012-04-10 00:31:43 +0000 |
commit | 75d77c3cd22ad2a3252232a330da0f2bf83c1595 (patch) | |
tree | ea5b478fc99846a11d59b5289e78ce62fcb19ce4 | |
parent | 3f413f2fb34672b130ec1c700a786b79def16cfe (diff) | |
download | org.eclipse.mylyn.tasks-75d77c3cd22ad2a3252232a330da0f2bf83c1595.tar.gz org.eclipse.mylyn.tasks-75d77c3cd22ad2a3252232a330da0f2bf83c1595.tar.xz org.eclipse.mylyn.tasks-75d77c3cd22ad2a3252232a330da0f2bf83c1595.zip |
NEW - bug 375224: [editor] org.eclipse.ui.PartInitException: Warning:
Blocked recursive attempt by part
org.eclipse.mylyn.tasks.ui.editors.task to dispose itself during
creation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=375224
-rw-r--r-- | org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java index e914d1253..8778600d0 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java @@ -43,7 +43,8 @@ public class TaskEditorBloatMonitor { if (totalTaskEditors > MAX_EDITORS) { for (IEditorReference editorReference : page.getEditorReferences()) { try { - if (TaskEditor.ID_EDITOR.equals(editorReference.getId())) { + if (editorPartOpened != editorReference.getPart(false) + && TaskEditor.ID_EDITOR.equals(editorReference.getId())) { TaskEditorInput taskEditorInput = (TaskEditorInput) editorReference.getEditorInput(); TaskEditor taskEditor = (TaskEditor) editorReference.getEditor(false); if (taskEditor == null) { |