Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 212484
Collapse All | Expand All

(-)src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java (+6 lines)
Lines 1905-1910 Link Here
1905
						+ taskData.getAttributeValue(RepositoryTaskAttribute.USER_REPORTER) + ">");
1905
						+ taskData.getAttributeValue(RepositoryTaskAttribute.USER_REPORTER) + ">");
1906
			}
1906
			}
1907
		}
1907
		}
1908
		addQAContact(peopleComposite);
1908
		addSelfToCC(peopleComposite);
1909
		addSelfToCC(peopleComposite);
1909
		addCCList(peopleComposite);
1910
		addCCList(peopleComposite);
1910
		getManagedForm().getToolkit().paintBordersFor(peopleComposite);
1911
		getManagedForm().getToolkit().paintBordersFor(peopleComposite);
Lines 3223-3228 Link Here
3223
		});
3224
		});
3224
	}
3225
	}
3225
3226
3227
	protected void addQAContact(Composite composite) {
3228
		
3229
	}
3230
3226
	public boolean getAttachContext() {
3231
	public boolean getAttachContext() {
3227
		if (attachContextButton == null || attachContextButton.isDisposed()) {
3232
		if (attachContextButton == null || attachContextButton.isDisposed()) {
3228
			return false;
3233
			return false;
Lines 3712-3715 Link Here
3712
		form.layout(true, true);
3717
		form.layout(true, true);
3713
		form.reflow(true);
3718
		form.reflow(true);
3714
	}
3719
	}
3720
	
3715
}
3721
}
(-)src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java (-1 / +1 lines)
Lines 42-48 Link Here
42
			"type"), UNKNOWN("UNKNOWN", "UNKNOWN"), VERSION("Version:", "version", false), INSTALL_VERSION(
42
			"type"), UNKNOWN("UNKNOWN", "UNKNOWN"), VERSION("Version:", "version", false), INSTALL_VERSION(
43
			"version of bugzilla installed", "install_version", true), VOTES("Votes:", "votes", true, true), WORK_TIME(
43
			"version of bugzilla installed", "install_version", true), VOTES("Votes:", "votes", true, true), WORK_TIME(
44
			"Add Time:", "work_time", true, false), WHO("who", "who"), WHO_NAME("who_name", "who_name", true, true), QA_CONTACT(
44
			"Add Time:", "work_time", true, false), WHO("who", "who"), WHO_NAME("who_name", "who_name", true, true), QA_CONTACT(
45
			"QA Contact", "qa_contact", false, false), ADDSELFCC("Add self to CC", "addselfcc", true, false),
45
			"QA Contact", "qa_contact", true, false),QA_CONTACT_NAME("QA Contact", "qa_contact_name", true, true), ADDSELFCC("Add self to CC", "addselfcc", true, false),
46
	// Used by search engine
46
	// Used by search engine
47
	LI("used by search engine", "li", true), ID("used by search engine", "id", true), SHORT_SHORT_DESC(
47
	LI("used by search engine", "li", true), ID("used by search engine", "id", true), SHORT_SHORT_DESC(
48
			"used by search engine", "short_short_desc", false), SEQ("used by search engine", "seq", false), RESULT(
48
			"used by search engine", "short_short_desc", false), SEQ("used by search engine", "seq", false), RESULT(
(-)src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java (+34 lines)
Lines 672-675 Link Here
672
		return super.attributeChanged(attribute);
672
		return super.attributeChanged(attribute);
673
	}
673
	}
674
674
675
	@Override
676
	protected void addQAContact(Composite composite) {
677
		boolean haveRealName = false;
678
		RepositoryTaskAttribute qaContact = taskData.getAttribute(BugzillaReportElement.QA_CONTACT_NAME.getKeyString());
679
		if (qaContact == null) {
680
			qaContact = taskData.getAttribute(BugzillaReportElement.QA_CONTACT.getKeyString());
681
		} else {
682
			haveRealName = true;
683
		}
684
		if (qaContact != null) {
685
			Label label = createLabel(composite, qaContact);
686
			GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(label);
687
			Text textField;
688
			if (qaContact.isReadOnly()) {
689
				textField = createTextField(composite, qaContact, SWT.FLAT | SWT.READ_ONLY);
690
			} else {
691
				textField = createTextField(composite, qaContact, SWT.FLAT);
692
				ContentAssistCommandAdapter adapter = applyContentAssist(textField,
693
						createContentProposalProvider(qaContact));
694
				ILabelProvider propsalLabelProvider = createProposalLabelProvider(qaContact);
695
				if (propsalLabelProvider != null) {
696
					adapter.setLabelProvider(propsalLabelProvider);
697
				}
698
				adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
699
			}
700
			GridDataFactory.fillDefaults().grab(true, false).applyTo(textField);
701
			if (haveRealName) {
702
				textField.setText(textField.getText() + " <"
703
						+ taskData.getAttributeValue(BugzillaReportElement.QA_CONTACT.getKeyString()) + ">");
704
			}			
705
		}
706
707
	}
708
675
}
709
}

Return to bug 212484