Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2009-12-12 21:09:58 +0000
committerfbecker2009-12-12 21:09:58 +0000
commit6a1432bd4f7f932b161febedc32a0d31366e290c (patch)
tree0670acc55bfa70c42f8e0451f26a50629bbfa884 /org.eclipse.mylyn.bugzilla.ui/src
parentd3a634c8563bd719aaee4b031f5d0e983ff4abf3 (diff)
downloadorg.eclipse.mylyn.tasks-6a1432bd4f7f932b161febedc32a0d31366e290c.tar.gz
org.eclipse.mylyn.tasks-6a1432bd4f7f932b161febedc32a0d31366e290c.tar.xz
org.eclipse.mylyn.tasks-6a1432bd4f7f932b161febedc32a0d31366e290c.zip
ASSIGNED - bug 297450: People are listed several times in Changes Submitted dialog
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297450
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java22
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties5
3 files changed, 20 insertions, 9 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
index b2e972423..48181251e 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
@@ -390,15 +390,23 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
@Override
public void linkActivated(HyperlinkEvent event) {
String mes = ""; //$NON-NLS-1$
- for (String iterable_element : bugzillaResponse.getResponseData().keySet()) {
- mes += NLS.bind(Messages.BugzillaTaskEditorPage_Changes_Submitted_Action_Line,
- iterable_element);
- List<String> o = bugzillaResponse.getResponseData().get(iterable_element);
- for (String string : o) {
+ for (String iterable_map : bugzillaResponse.getResponseData().keySet()) {
+ mes += NLS.bind(Messages.BugzillaTaskEditorPage_Changes_Submitted_Bug_Line,
+ iterable_map);
+ Map<String, List<String>> responseMap = bugzillaResponse.getResponseData().get(
+ iterable_map);
+ for (String iterable_list : responseMap.keySet()) {
mes += NLS.bind(
- Messages.BugzillaTaskEditorPage_Changes_Submitted_Email_Line,
- string);
+ Messages.BugzillaTaskEditorPage_Changes_Submitted_Action_Line,
+ iterable_list);
+ List<String> responseList = responseMap.get(iterable_list);
+ for (String string : responseList) {
+ mes += NLS.bind(
+ Messages.BugzillaTaskEditorPage_Changes_Submitted_Email_Line,
+ string);
+ }
}
+
}
new MessageDialog(WorkbenchUtil.getShell(),
Messages.BugzillaTaskEditorPage_Changes_Submitted_Titel, null, mes,
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java
index f7de5c092..4829f7c23 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java
@@ -33,6 +33,8 @@ public class Messages extends NLS {
public static String BugzillaPlanningEditorPart_Team_Planning;
+ public static String BugzillaTaskEditorPage_Changes_Submitted_Bug_Line;
+
public static String BugzillaTaskEditorPage_Changes_Submitted_Action_Line;
public static String BugzillaTaskEditorPage_Changes_Submitted_Email_Line;
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties
index 62dc6ef40..a7d20bfda 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties
@@ -14,8 +14,9 @@ BugzillaPeoplePart__Select_to_remove_=(Select to remove)
BugzillaPlanningEditorPart_Current_Estimate=Current Estimate:
BugzillaPlanningEditorPart_Team_Planning=Team Planning
-BugzillaTaskEditorPage_Changes_Submitted_Action_Line={0}\n
-BugzillaTaskEditorPage_Changes_Submitted_Email_Line=\ \ \ \ \ \ \ \ {0}\n
+BugzillaTaskEditorPage_Changes_Submitted_Bug_Line=\n{0}\n
+BugzillaTaskEditorPage_Changes_Submitted_Action_Line=\ \ \ \ \ \ \ \ {0}\n
+BugzillaTaskEditorPage_Changes_Submitted_Email_Line=\ \ \ \ \ \ \ \ \ \ \ \ {0}\n
BugzillaTaskEditorPage_Changes_Submitted_Message=Changes submitted
BugzillaTaskEditorPage_Changes_Submitted_Titel=Changes submitted
BugzillaTaskEditorPage_Please_enter_a_description_before_submitting=Please enter a description before submitting

Back to the top