Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2012-07-17 17:47:15 +0000
committerGerrit Code Review @ Eclipse.org2013-05-07 23:27:40 +0000
commitad4f4ec1807af8386b5dbb2f0faf6045b6bec0f9 (patch)
treef65417b4362ecc5b77aaa2a43a31dd360276dee6 /org.eclipse.mylyn.tasks.ui
parent14645818d4cba66532dad22c29dfec6857da9706 (diff)
downloadorg.eclipse.mylyn.tasks-ad4f4ec1807af8386b5dbb2f0faf6045b6bec0f9.tar.gz
org.eclipse.mylyn.tasks-ad4f4ec1807af8386b5dbb2f0faf6045b6bec0f9.tar.xz
org.eclipse.mylyn.tasks-ad4f4ec1807af8386b5dbb2f0faf6045b6bec0f9.zip
NEW - bug 385235: Improve extensibility of TaskEditorPeoplePart
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385235 Change-Id: I72ab4374e0d5fd3d8b7123d41baf170ca4a75e68
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java
index 2b804eb03..3c71c0585 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java
@@ -33,7 +33,7 @@ public class TaskEditorPeoplePart extends AbstractTaskEditorPart {
setPartName(Messages.TaskEditorPeoplePart_People);
}
- private void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute) {
+ protected void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute) {
AbstractAttributeEditor editor = createAttributeEditor(attribute);
if (editor != null) {
editor.createLabelControl(composite, toolkit);
@@ -62,14 +62,18 @@ public class TaskEditorPeoplePart extends AbstractTaskEditorPart {
layout.numColumns = 2;
peopleComposite.setLayout(layout);
- addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_ASSIGNED));
- addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_REPORTER));
- addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.ADD_SELF_CC));
- addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_CC));
+ createAttributeEditors(toolkit, peopleComposite);
toolkit.paintBordersFor(peopleComposite);
section.setClient(peopleComposite);
setSection(toolkit, section);
}
+ protected void createAttributeEditors(FormToolkit toolkit, Composite peopleComposite) {
+ addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_ASSIGNED));
+ addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_REPORTER));
+ addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.ADD_SELF_CC));
+ addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_CC));
+ }
+
}

Back to the top