Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-05-30 21:44:43 +0000
committerrelves2006-05-30 21:44:43 +0000
commit4d205744d57b548fe0a5553ba88549b81fc8c36b (patch)
tree300ff1000ec75220b4a4092ec71bb20fb2e2aa0d
parente8e44479152110220affbc1b80fb8e58c4defa6e (diff)
downloadorg.eclipse.mylyn.tasks-4d205744d57b548fe0a5553ba88549b81fc8c36b.tar.gz
org.eclipse.mylyn.tasks-4d205744d57b548fe0a5553ba88549b81fc8c36b.tar.xz
org.eclipse.mylyn.tasks-4d205744d57b548fe0a5553ba88549b81fc8c36b.zip
Completed: 133765: Comments section in Bugzilla editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=133765
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
index 63971f4f4..5583bb8d8 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
@@ -529,7 +529,11 @@ public class ExistingBugEditor extends AbstractBugEditor {
expandableComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Composite ecComposite = toolkit.createComposite(expandableComposite);
- ecComposite.setLayout(new GridLayout());
+ GridLayout ecLayout = new GridLayout();
+ ecLayout.marginHeight = 0;
+ ecLayout.marginBottom = 10;
+ ecLayout.marginLeft = 10;
+ ecComposite.setLayout(ecLayout);
ecComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
expandableComposite.setClient(ecComposite);
// toolkit.paintBordersFor(expandableComposite);
@@ -579,9 +583,10 @@ public class ExistingBugEditor extends AbstractBugEditor {
// styledText.setFont(COMMENT_FONT);
// System.err.println(comment.getNumber()+" "+comment.getText());
TextViewer viewer = addRepositoryText(repository, ecComposite, comment.getText());
- styledText = viewer.getTextWidget();
-
+ styledText = viewer.getTextWidget();
GridDataFactory.fillDefaults().hint(DESCRIPTION_WIDTH, SWT.DEFAULT).applyTo(styledText);
+
+
// line wrapping
// GridData styledTextData = new GridData(GridData.FILL_HORIZONTAL);
// styledTextData.widthHint = DESCRIPTION_WIDTH;

Back to the top