Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-06-29 20:37:58 +0000
committersminto2005-06-29 20:37:58 +0000
commit33af02ad21255c099d31a324f5b60098b8d2e80b (patch)
tree8d4e4a2985bf15222c9ab48ddeda2fa54f984b9a
parent97aca2db94f6ec09787455a55cc22469df7cd1c6 (diff)
downloadorg.eclipse.mylyn.tasks-33af02ad21255c099d31a324f5b60098b8d2e80b.tar.gz
org.eclipse.mylyn.tasks-33af02ad21255c099d31a324f5b60098b8d2e80b.tar.xz
org.eclipse.mylyn.tasks-33af02ad21255c099d31a324f5b60098b8d2e80b.zip
made search hits show the @ properly
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/search/BugzillaLabelProvider.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/search/BugzillaLabelProvider.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/search/BugzillaLabelProvider.java
index 83d568e1c..4625c5c68 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/search/BugzillaLabelProvider.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/search/BugzillaLabelProvider.java
@@ -13,6 +13,7 @@ package org.eclipse.mylar.bugzilla.search;
import org.eclipse.core.resources.IMarker;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.mylar.bugzilla.IBugzillaConstants;
+import org.eclipse.mylar.bugzilla.core.internal.HtmlStreamTokenizer;
/**
* Label provider for Bugzilla search items.
@@ -66,8 +67,8 @@ public class BugzillaLabelProvider extends LabelProvider
// return a string containing the information about the bug to
// be displayed
// in the searh window
- String assignedTo = marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_OWNER).toString();
- assignedTo = assignedTo.replace("@", "@");
+ String assignedTo = HtmlStreamTokenizer.unescape(marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_OWNER).toString());
+ String description = HtmlStreamTokenizer.unescape(marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_DESC).toString());
return "Bug "
+ marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_ID)
+ " ("
@@ -79,7 +80,7 @@ public class BugzillaLabelProvider extends LabelProvider
+ (result.length() > 0 ? " " + result : "")
+ ") "
+ " - "
- + marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_DESC)
+ + description
+ " ("
+ assignedTo
+ ") ";

Back to the top