Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-08-11 20:23:34 +0000
committerspingel2009-08-11 20:23:34 +0000
commitfc4c5df7293235052092502eac5b5a9f28e7fe77 (patch)
treef0a1f1fa3a8a8b2b85928cabc492f5b7012b55e9
parent36f4c553799ea5521d2104dc0a73042e3bd1649c (diff)
downloadorg.eclipse.mylyn.tasks-fc4c5df7293235052092502eac5b5a9f28e7fe77.tar.gz
org.eclipse.mylyn.tasks-fc4c5df7293235052092502eac5b5a9f28e7fe77.tar.xz
org.eclipse.mylyn.tasks-fc4c5df7293235052092502eac5b5a9f28e7fe77.zip
NEW - bug 280152: fix behavior of expand all in Task Editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280152
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java17
1 files changed, 12 insertions, 5 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 652c0808b..81dd1c6b5 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
@@ -522,19 +522,22 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart {
try {
getTaskEditorPage().setReflow(false);
+ @SuppressWarnings("unused")
boolean collapsed = false;
List<CommentGroupViewer> viewers = getCommentGroupViewers();
for (int i = 0; i < viewers.size(); i++) {
if (viewers.get(i).isExpanded()) {
viewers.get(i).setExpanded(false);
collapsed = viewers.get(i).isRenderedInSubSection();
- break;
+ // bug 280152: collapse all groups
+ //break;
}
}
- if (!collapsed && section != null) {
- CommonFormUtil.setExpanded(section, false);
- }
+ // keep section expanded
+// if (!collapsed && section != null) {
+// CommonFormUtil.setExpanded(section, false);
+// }
} finally {
getTaskEditorPage().setReflow(true);
}
@@ -604,9 +607,12 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart {
public void expansionStateChanged(ExpansionEvent event) {
if (section.getClient() == null) {
try {
+ expandAllInProgress = true;
getTaskEditorPage().setReflow(false);
+
expandSection(toolkit, section);
} finally {
+ expandAllInProgress = false;
getTaskEditorPage().setReflow(true);
}
getTaskEditorPage().reflow();
@@ -643,7 +649,8 @@ public class TaskEditorCommentPart extends AbstractTaskEditorPart {
for (int i = viewers.size() - 1; i >= 0; i--) {
if (!viewers.get(i).isFullyExpanded()) {
viewers.get(i).setExpanded(true);
- break;
+ // bug 280152: expand all groups
+ //break;
}
}
}

Back to the top