Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2016-09-07 13:40:31 -0400
committerGerrit Code Review @ Eclipse.org2016-09-09 14:13:08 -0400
commit7fc77503de68cb636a3bc4b3b31124e007849c09 (patch)
tree575f870fe288080508c1b1dc724bcec8f4d96d0e /connector-bugzilla-rest
parent0ba70b0f0eabf9bcf2ec61ef2bb54b6f8ab5275c (diff)
downloadorg.eclipse.mylyn.tasks-7fc77503de68cb636a3bc4b3b31124e007849c09.tar.gz
org.eclipse.mylyn.tasks-7fc77503de68cb636a3bc4b3b31124e007849c09.tar.xz
org.eclipse.mylyn.tasks-7fc77503de68cb636a3bc4b3b31124e007849c09.zip
496268: Bugzilla add CC should be single line
The change to use LabelsAttributeEditor made it a multiline. Change-Id: I37f5181e41c48f0f89a4801f339b9def363886cc Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=496268
Diffstat (limited to 'connector-bugzilla-rest')
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPage.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPage.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPage.java
index 1898d36fa..44d20b61a 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPage.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPage.java
@@ -14,12 +14,16 @@ package org.eclipse.mylyn.internal.bugzilla.rest.ui;
import java.util.Set;
import org.eclipse.mylyn.internal.bugzilla.rest.core.BugzillaRestCore;
+import org.eclipse.mylyn.internal.bugzilla.rest.core.BugzillaRestTaskSchema;
import org.eclipse.mylyn.internal.bugzilla.rest.core.IBugzillaRestConstants;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPart;
import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorFactory;
+import org.eclipse.mylyn.tasks.ui.editors.LayoutHint;
+import org.eclipse.mylyn.tasks.ui.editors.LayoutHint.ColumnSpan;
+import org.eclipse.mylyn.tasks.ui.editors.LayoutHint.RowSpan;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditorPartDescriptor;
@@ -49,6 +53,10 @@ public class BugzillaRestTaskEditorPage extends AbstractTaskEditorPage {
} else {
editor = super.createEditor(type, taskAttribute);
}
+ if (editor != null
+ && BugzillaRestTaskSchema.getDefault().ADD_CC.getKey().equals(taskAttribute.getId())) {
+ editor.setLayoutHint(new LayoutHint(RowSpan.SINGLE, ColumnSpan.SINGLE));
+ }
return editor;
}
};

Back to the top