diff options
author | spingel | 2008-08-18 06:17:27 +0000 |
---|---|---|
committer | spingel | 2008-08-18 06:17:27 +0000 |
commit | 4966d6d26053841d6ae14313c00086c56f20a70e (patch) | |
tree | 3c925aa039af61c8597a75a75ccc20251a20344c | |
parent | 7dff5c9024f1cd141c267abdebd9a643aa723c37 (diff) | |
download | org.eclipse.mylyn.tasks-4966d6d26053841d6ae14313c00086c56f20a70e.tar.gz org.eclipse.mylyn.tasks-4966d6d26053841d6ae14313c00086c56f20a70e.tar.xz org.eclipse.mylyn.tasks-4966d6d26053841d6ae14313c00086c56f20a70e.zip |
NEW - bug 238038: [patch] provide time range based folding for comments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=238038
-rw-r--r-- | org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java index 67c9aaec0..98c3b7475 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java @@ -49,7 +49,7 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart { private static final String LABEL_REPLY = "Reply"; - private Section section; + protected Section section; protected List<ExpandableComposite> commentComposites; @@ -120,12 +120,14 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart { section.setEnabled(false); } else { if (hasIncoming) { + commentComposites = new ArrayList<ExpandableComposite>(); expandSection(toolkit, section, comments); } else { section.addExpansionListener(new ExpansionAdapter() { @Override public void expansionStateChanged(ExpansionEvent event) { if (commentComposites == null) { + commentComposites = new ArrayList<ExpandableComposite>(); expandSection(toolkit, section, comments); getTaskEditorPage().reflow(); } @@ -146,7 +148,6 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart { } protected void addComments(final FormToolkit toolkit, final Composite composite, final List<TaskAttribute> comments) { - commentComposites = new ArrayList<ExpandableComposite>(); for (final TaskAttribute commentAttribute : comments) { boolean hasIncomingChanges = getModel().hasIncomingChanges(commentAttribute); final TaskComment taskComment = new TaskComment(getModel().getTaskRepository(), getModel().getTask(), @@ -331,7 +332,7 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart { } } - private void expandAllComments() { + protected void expandAllComments() { try { getTaskEditorPage().setReflow(false); |