Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-04-02 01:40:09 +0000
committerspingel2008-04-02 01:40:09 +0000
commit76f691e931d22293fe1fcef3721e69b30729688e (patch)
tree83645af52b2fae9128e2973f4d8f15f13579a645
parentbd9fdf210403571d124c526a01402c8a35e8fc8b (diff)
downloadorg.eclipse.mylyn.tasks-76f691e931d22293fe1fcef3721e69b30729688e.tar.gz
org.eclipse.mylyn.tasks-76f691e931d22293fe1fcef3721e69b30729688e.tar.xz
org.eclipse.mylyn.tasks-76f691e931d22293fe1fcef3721e69b30729688e.zip
RESOLVED - bug 224536: [m2.3.2] improve task editor performanceR_2_3_2
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, 4 insertions, 5 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 f757c2d16..1c42355f3 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,12 +2703,11 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
* @Since 2.3
*/
private Section createSection(Composite composite, String title, boolean expandedState) {
- int flags = ExpandableComposite.TITLE_BAR | Section.TWISTIE;
- if (expandedState) {
- flags |= ExpandableComposite.EXPANDED;
- }
- Section section = toolkit.createSection(composite, flags);
+ Section section = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE);
section.setText(title);
+ if (section.isExpanded() != expandedState) {
+ section.setExpanded(expandedState);
+ }
section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
return section;
}

Back to the top