Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 84919 Details for
Bug 212484
Move field QA Contact from section Attributes to People
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
clipboard.txt (text/plain), 4.68 KB, created by
Frank Becker
on 2007-12-10 22:09:49 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Frank Becker
Created:
2007-12-10 22:09:49 EST
Size:
4.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java,v >retrieving revision 1.250 >diff -u -r1.250 AbstractRepositoryTaskEditor.java >--- src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java 27 Nov 2007 02:22:54 -0000 1.250 >+++ src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java 11 Dec 2007 03:05:41 -0000 >@@ -1905,6 +1905,7 @@ > + taskData.getAttributeValue(RepositoryTaskAttribute.USER_REPORTER) + ">"); > } > } >+ addQAContact(peopleComposite); > addSelfToCC(peopleComposite); > addCCList(peopleComposite); > getManagedForm().getToolkit().paintBordersFor(peopleComposite); >@@ -3223,6 +3224,10 @@ > }); > } > >+ protected void addQAContact(Composite composite) { >+ >+ } >+ > public boolean getAttachContext() { > if (attachContextButton == null || attachContextButton.isDisposed()) { > return false; >@@ -3712,4 +3717,5 @@ > form.layout(true, true); > form.reflow(true); > } >+ > } >#P org.eclipse.mylyn.bugzilla.core >Index: src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java,v >retrieving revision 1.29 >diff -u -r1.29 BugzillaReportElement.java >--- src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java 8 Oct 2007 05:11:03 -0000 1.29 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java 11 Dec 2007 03:05:42 -0000 >@@ -42,7 +42,7 @@ > "type"), UNKNOWN("UNKNOWN", "UNKNOWN"), VERSION("Version:", "version", false), INSTALL_VERSION( > "version of bugzilla installed", "install_version", true), VOTES("Votes:", "votes", true, true), WORK_TIME( > "Add Time:", "work_time", true, false), WHO("who", "who"), WHO_NAME("who_name", "who_name", true, true), QA_CONTACT( >- "QA Contact", "qa_contact", false, false), ADDSELFCC("Add self to CC", "addselfcc", true, false), >+ "QA Contact", "qa_contact", true, false),QA_CONTACT_NAME("QA Contact", "qa_contact_name", true, true), ADDSELFCC("Add self to CC", "addselfcc", true, false), > // Used by search engine > LI("used by search engine", "li", true), ID("used by search engine", "id", true), SHORT_SHORT_DESC( > "used by search engine", "short_short_desc", false), SEQ("used by search engine", "seq", false), RESULT( >#P org.eclipse.mylyn.bugzilla.ui >Index: src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java,v >retrieving revision 1.83 >diff -u -r1.83 BugzillaTaskEditor.java >--- src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java 21 Nov 2007 22:14:56 -0000 1.83 >+++ src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java 11 Dec 2007 03:05:45 -0000 >@@ -672,4 +672,38 @@ > return super.attributeChanged(attribute); > } > >+ @Override >+ protected void addQAContact(Composite composite) { >+ boolean haveRealName = false; >+ RepositoryTaskAttribute qaContact = taskData.getAttribute(BugzillaReportElement.QA_CONTACT_NAME.getKeyString()); >+ if (qaContact == null) { >+ qaContact = taskData.getAttribute(BugzillaReportElement.QA_CONTACT.getKeyString()); >+ } else { >+ haveRealName = true; >+ } >+ if (qaContact != null) { >+ Label label = createLabel(composite, qaContact); >+ GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(label); >+ Text textField; >+ if (qaContact.isReadOnly()) { >+ textField = createTextField(composite, qaContact, SWT.FLAT | SWT.READ_ONLY); >+ } else { >+ textField = createTextField(composite, qaContact, SWT.FLAT); >+ ContentAssistCommandAdapter adapter = applyContentAssist(textField, >+ createContentProposalProvider(qaContact)); >+ ILabelProvider propsalLabelProvider = createProposalLabelProvider(qaContact); >+ if (propsalLabelProvider != null) { >+ adapter.setLabelProvider(propsalLabelProvider); >+ } >+ adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE); >+ } >+ GridDataFactory.fillDefaults().grab(true, false).applyTo(textField); >+ if (haveRealName) { >+ textField.setText(textField.getText() + " <" >+ + taskData.getAttributeValue(BugzillaReportElement.QA_CONTACT.getKeyString()) + ">"); >+ } >+ } >+ >+ } >+ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212484
: 84919 |
84920