|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2004, 2008 Tasktop Technologies and others. |
2 |
* Copyright (c) 2004, 2008 Tasktop Technologies and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 154-175
Link Here
|
| 154 |
|
154 |
|
| 155 |
@Override |
155 |
@Override |
| 156 |
protected void expandAllComments() { |
156 |
protected void expandAllComments() { |
| 157 |
// first toggle on all subSections |
157 |
if (subSections != null) { |
| 158 |
try { |
158 |
// first toggle on all subSections |
| 159 |
getTaskEditorPage().setReflow(false); |
159 |
try { |
|
|
160 |
getTaskEditorPage().setReflow(false); |
| 160 |
|
161 |
|
| 161 |
if (section != null) { |
162 |
if (section != null) { |
| 162 |
EditorUtil.toggleExpandableComposite(true, section); |
163 |
EditorUtil.toggleExpandableComposite(true, section); |
| 163 |
} |
164 |
} |
| 164 |
|
165 |
|
| 165 |
for (Section subSection : subSections) { |
166 |
for (Section subSection : subSections) { |
| 166 |
if (subSection.isDisposed()) { |
167 |
if (subSection.isDisposed()) { |
| 167 |
continue; |
168 |
continue; |
|
|
169 |
} |
| 170 |
EditorUtil.toggleExpandableComposite(true, subSection); |
| 168 |
} |
171 |
} |
| 169 |
EditorUtil.toggleExpandableComposite(true, subSection); |
172 |
} finally { |
|
|
173 |
getTaskEditorPage().setReflow(true); |
| 170 |
} |
174 |
} |
| 171 |
} finally { |
|
|
| 172 |
getTaskEditorPage().setReflow(true); |
| 173 |
} |
175 |
} |
| 174 |
|
176 |
|
| 175 |
super.expandAllComments(); |
177 |
super.expandAllComments(); |