Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-02-08 19:59:54 +0000
committerFrank Becker2012-02-08 19:59:54 +0000
commit06b60fa726bcd610fb5d64fce6cfda07130fde32 (patch)
treea9c4e94dab5e25f6b7b08fb3593ba574d9dc9756 /org.eclipse.mylyn.bugzilla.core
parent1ed0499f33860264f9efd2e8e6824b7a28440df0 (diff)
downloadorg.eclipse.mylyn.tasks-06b60fa726bcd610fb5d64fce6cfda07130fde32.tar.gz
org.eclipse.mylyn.tasks-06b60fa726bcd610fb5d64fce6cfda07130fde32.tar.xz
org.eclipse.mylyn.tasks-06b60fa726bcd610fb5d64fce6cfda07130fde32.zip
ASSIGNED - bug 168204: [patch] support bugzilla's usermatchmode for
matching names to email addresses https://bugs.eclipse.org/bugs/show_bug.cgi?id=168204 UI Part Change-Id: I3ccd86f6a304dcd9be8e2b7b924ae53a3a22f793
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaUserMatchResponse.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaUserMatchResponse.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaUserMatchResponse.java
index e35eb2dde..0e7a49511 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaUserMatchResponse.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaUserMatchResponse.java
@@ -94,6 +94,7 @@ public class BugzillaUserMatchResponse {
&& divClass.equals("user_match")) { //$NON-NLS-1$
value = ((HtmlTag) (token.getValue())).getAttribute("value"); //$NON-NLS-1$
name = ((HtmlTag) (token.getValue())).getAttribute("name"); //$NON-NLS-1$
+ value = value.replace("@", "@"); //$NON-NLS-1$ //$NON-NLS-2$
if (name.equals("newcc")) { //$NON-NLS-1$
newCCProposals.add(value);
} else if (name.equals("assigned_to")) { //$NON-NLS-1$
@@ -110,6 +111,7 @@ public class BugzillaUserMatchResponse {
&& !((HtmlTag) (token.getValue())).isEndTag() && divClass != null
&& divClass.equals("user_match")) { //$NON-NLS-1$
value = ((HtmlTag) (token.getValue())).getAttribute("value"); //$NON-NLS-1$
+ value = value.replace("@", "@"); //$NON-NLS-1$ //$NON-NLS-2$
if (name.equals("newcc")) { //$NON-NLS-1$
newCCProposals.add(value);
} else if (name.equals("assigned_to")) { //$NON-NLS-1$
@@ -257,6 +259,7 @@ public class BugzillaUserMatchResponse {
int endText = divString.indexOf("<", startText + 1); //$NON-NLS-1$
String temp = divString.substring(startText, endText);
value = divString.substring(5, start) + temp;
+ value = value.replace("&#64;", "@"); //$NON-NLS-1$ //$NON-NLS-2$
if (lastDTValue.equals("newcc")) { //$NON-NLS-1$
newCCMsg = value;
} else if (lastDTValue.equals("assigned_to")) { //$NON-NLS-1$

Back to the top