Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2016-07-10 12:46:28 +0000
committerGerrit Code Review @ Eclipse.org2016-07-16 05:41:13 +0000
commit17238aa949b32aba963b883ac52012193f3c74dc (patch)
tree878d4dcc3665ad0bb81c4490d46d0bebdf32e43c /org.eclipse.mylyn.bugzilla.ui
parentf294b5f653716cb490ff9b24958eac097f130617 (diff)
downloadorg.eclipse.mylyn.tasks-17238aa949b32aba963b883ac52012193f3c74dc.tar.gz
org.eclipse.mylyn.tasks-17238aa949b32aba963b883ac52012193f3c74dc.tar.xz
org.eclipse.mylyn.tasks-17238aa949b32aba963b883ac52012193f3c74dc.zip
496268: Bugzilla connector uses LabelsAttributeEditor for add CC
Change-Id: I3f710f61fe0b17946d3244fd95634c54d2d88c84 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=496268
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java
index 5c7854404..b5462b33d 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java
@@ -24,6 +24,8 @@ import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorPeoplePart;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
+import org.eclipse.mylyn.tasks.ui.editors.LayoutHint;
+import org.eclipse.mylyn.tasks.ui.editors.LayoutHint.RowSpan;
import org.eclipse.swt.SWT;
/**
@@ -108,10 +110,14 @@ public class BugzillaPeoplePart extends TaskEditorPeoplePart {
@Override
protected GridDataFactory createLayoutData(AbstractAttributeEditor editor) {
- GridDataFactory dataFactory = super.createLayoutData(editor);
- if (editor.getTaskAttribute().getId().equals(BugzillaAttribute.CC.getKey())) {
- dataFactory.grab(true, true).align(SWT.FILL, SWT.FILL).hint(130, 95);
+ LayoutHint layoutHint = editor.getLayoutHint();
+ GridDataFactory gridDataFactory = GridDataFactory.fillDefaults().indent(3, 0);// prevent clipping of decorators on Mac
+ if (layoutHint != null && layoutHint.rowSpan == RowSpan.MULTIPLE) {
+ gridDataFactory.grab(true, true).align(SWT.FILL, SWT.FILL).hint(130, 95);
+ } else {
+ gridDataFactory.grab(true, false).align(SWT.FILL, SWT.TOP);
+
}
- return dataFactory;
+ return gridDataFactory;
}
}

Back to the top