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 118727 Details for
Bug 256045
Reassign to default assignee is not present for Bugzilla Version >= 3.0
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]
Minor update
256045.txt (text/plain), 4.23 KB, created by
Robert Elves
on 2008-11-25 18:24:55 EST
(
hide
)
Description:
Minor update
Filename:
MIME Type:
Creator:
Robert Elves
Created:
2008-11-25 18:24:55 EST
Size:
4.23 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.bugzilla.core >Index: src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java,v >retrieving revision 1.8 >diff -u -r1.8 BugzillaAttribute.java >--- src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java 4 Nov 2008 06:36:18 -0000 1.8 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java 25 Nov 2008 21:40:19 -0000 >@@ -114,8 +114,7 @@ > > REMAINING_TIME("Remaining:", "remaining_time", TaskAttribute.TYPE_SHORT_TEXT, true, false), > >- SET_DEFAULT_ASSIGNEE("Reassign to default assignee", "set_default_assignee", TaskAttribute.TYPE_OPERATION, false, >- false), >+ SET_DEFAULT_ASSIGNEE("Reset assignee to default", "set_default_assignee", TaskAttribute.TYPE_BOOLEAN, true, false), > > SHORT_DESC("Summary:", "short_desc", TaskAttribute.TYPE_SHORT_RICH_TEXT, true, false), > >Index: src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java,v >retrieving revision 1.29 >diff -u -r1.29 RepositoryConfiguration.java >--- src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java 12 Sep 2008 04:17:45 -0000 1.29 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java 25 Nov 2008 21:40:19 -0000 >@@ -478,12 +478,26 @@ > if (bugzillaVersion == null) { > bugzillaVersion = "2.18"; > } >- if (bugzillaVersion.compareTo("3.1") < 0 >- && (status == BUGZILLA_REPORT_STATUS.NEW || status == BUGZILLA_REPORT_STATUS.ASSIGNED >- || status == BUGZILLA_REPORT_STATUS.REOPENED || status == BUGZILLA_REPORT_STATUS.UNCONFIRMED)) { >- // old bugzilla workflow is used >- addOperation(bugReport, BugzillaOperation.reassign); >- addOperation(bugReport, BugzillaOperation.reassignbycomponent); >+ if (status == BUGZILLA_REPORT_STATUS.NEW || status == BUGZILLA_REPORT_STATUS.ASSIGNED >+ || status == BUGZILLA_REPORT_STATUS.REOPENED || status == BUGZILLA_REPORT_STATUS.UNCONFIRMED) { >+ if (bugzillaVersion.compareTo("3.1") < 0) { >+ // old bugzilla workflow is used >+ addOperation(bugReport, BugzillaOperation.reassign); >+ addOperation(bugReport, BugzillaOperation.reassignbycomponent); >+ } else { >+ BugzillaAttribute key = BugzillaAttribute.SET_DEFAULT_ASSIGNEE; >+ TaskAttribute operationAttribute = bugReport.getRoot().getAttribute(key.getKey()); >+ if (operationAttribute == null) { >+ operationAttribute = bugReport.getRoot().createAttribute(key.getKey()); >+ operationAttribute.getMetaData() >+ .defaults() >+ .setReadOnly(key.isReadOnly()) >+ .setKind(key.getKind()) >+ .setLabel(key.toString()) >+ .setType(key.getType()); >+ operationAttribute.setValue("0"); >+ } >+ } > } > } > >#P org.eclipse.mylyn.bugzilla.ui >Index: src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java,v >retrieving revision 1.8 >diff -u -r1.8 BugzillaPeoplePart.java >--- src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java 12 Sep 2008 04:15:33 -0000 1.8 >+++ src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java 25 Nov 2008 21:40:20 -0000 >@@ -66,6 +66,10 @@ > peopleComposite.setLayout(layout); > > addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_ASSIGNED)); >+ TaskAttribute assignee = getTaskData().getRoot().getAttribute(BugzillaAttribute.SET_DEFAULT_ASSIGNEE.getKey()); >+ if (assignee != null) { >+ addAttribute(peopleComposite, toolkit, assignee); >+ } > addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_REPORTER)); > addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute( > BugzillaAttribute.QA_CONTACT.getKey()));
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 256045
:
118414
|
118415
| 118727 |
118765
|
118766