Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-03-28 03:15:47 -0400
committerspingel2008-03-28 03:15:47 -0400
commit3006d4e1abc032a5ced8c441becb93ba285a0032 (patch)
tree97ae74efb00bf17035fcdf6403a49501a63c72de
parentac726d99754239853a3170345b081edba2dee7d6 (diff)
downloadorg.eclipse.mylyn.tasks-3006d4e1abc032a5ced8c441becb93ba285a0032.tar.gz
org.eclipse.mylyn.tasks-3006d4e1abc032a5ced8c441becb93ba285a0032.tar.xz
org.eclipse.mylyn.tasks-3006d4e1abc032a5ced8c441becb93ba285a0032.zip
NEW - bug 224536: [m2.3.2] improve task editor performance
https://bugs.eclipse.org/bugs/show_bug.cgi?id=224536
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index 1c42355f3..f757c2d16 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -2703,11 +2703,12 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
* @Since 2.3
*/
private Section createSection(Composite composite, String title, boolean expandedState) {
- Section section = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE);
- section.setText(title);
- if (section.isExpanded() != expandedState) {
- section.setExpanded(expandedState);
+ int flags = ExpandableComposite.TITLE_BAR | Section.TWISTIE;
+ if (expandedState) {
+ flags |= ExpandableComposite.EXPANDED;
}
+ Section section = toolkit.createSection(composite, flags);
+ section.setText(title);
section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
return section;
}

Back to the top