Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-02-11 19:48:11 +0000
committerfbecker2010-02-11 19:48:11 +0000
commit4c9c38c2c0985f853044a87cddc7e44ed8962eb0 (patch)
tree4035e347ffa98ca909a6215f2cb0374a921dbede /org.eclipse.mylyn.bugzilla.ui
parent1a3adf8d7cce10e3db191ec37a2d7a04967444bd (diff)
downloadorg.eclipse.mylyn.tasks-4c9c38c2c0985f853044a87cddc7e44ed8962eb0.tar.gz
org.eclipse.mylyn.tasks-4c9c38c2c0985f853044a87cddc7e44ed8962eb0.tar.xz
org.eclipse.mylyn.tasks-4c9c38c2c0985f853044a87cddc7e44ed8962eb0.zip
ASSIGNED - bug 297437: Support for patch review through Mylyn for Bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297437
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java
index 9aa73c0a0..2f42c1865 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java
@@ -72,7 +72,7 @@ public class BugzillaTaskAttachmentPage extends TaskAttachmentPage {
BugzillaAttribute.PRODUCT.getKey());
TaskAttribute componentAttribute = getModel().getAttribute().getTaskData().getRoot().getMappedAttribute(
BugzillaAttribute.COMPONENT.getKey());
- Control[] children = parent.getChildren();
+ Control[] children = getScrolledBodyComposite().getChildren();
Composite pageComposite = (Composite) children[children.length - 1];
Composite flagComposite = null;
for (BugzillaFlag bugzillaFlag : flags) {
@@ -152,7 +152,10 @@ public class BugzillaTaskAttachmentPage extends TaskAttachmentPage {
});
}
}
+ Label dummy = new Label(pageComposite, SWT.NONE);
+ dummy.setText(""); //$NON-NLS-1$
}
+ updateSize4ScrolledComposite();
}
private Composite createFlagSection(Composite container) {
@@ -168,6 +171,7 @@ public class BugzillaTaskAttachmentPage extends TaskAttachmentPage {
flagExpandComposite.addExpansionListener(new ExpansionAdapter() {
@Override
public void expansionStateChanged(ExpansionEvent e) {
+ updateSize4ScrolledComposite();
getControl().getShell().pack();
}
});

Back to the top