Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-08-18 02:17:27 -0400
committerspingel2008-08-18 02:17:27 -0400
commit4966d6d26053841d6ae14313c00086c56f20a70e (patch)
tree3c925aa039af61c8597a75a75ccc20251a20344c
parent7dff5c9024f1cd141c267abdebd9a643aa723c37 (diff)
downloadorg.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.java7
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);

Back to the top