Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-06-29 19:59:17 +0000
committersminto2005-06-29 19:59:17 +0000
commitddd4fb41a124dc0921fedb223fe44dcdd42294ea (patch)
tree2cb3511b427ce4d632e7adf09dc6ca2db72bb001
parent5382e58314858a332f740d86ca351ff66c322c4b (diff)
downloadorg.eclipse.mylyn.tasks-ddd4fb41a124dc0921fedb223fe44dcdd42294ea.tar.gz
org.eclipse.mylyn.tasks-ddd4fb41a124dc0921fedb223fe44dcdd42294ea.tar.xz
org.eclipse.mylyn.tasks-ddd4fb41a124dc0921fedb223fe44dcdd42294ea.zip
made search hits show the @ properly
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/search/BugzillaLabelProvider.java7
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java2
2 files changed, 5 insertions, 4 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 f117ade15..83d568e1c 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
@@ -11,7 +11,6 @@
package org.eclipse.mylar.bugzilla.search;
import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.mylar.bugzilla.IBugzillaConstants;
@@ -67,6 +66,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("@", "@");
return "Bug "
+ marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_ID)
+ " ("
@@ -80,10 +81,10 @@ public class BugzillaLabelProvider extends LabelProvider
+ " - "
+ marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_DESC)
+ " ("
- + marker.getAttribute(IBugzillaConstants.HIT_MARKER_ATTR_OWNER)
+ + assignedTo
+ ") ";
}
- catch (CoreException ignored) {
+ catch (Exception ignored) {
// ignore if there is a problem
}
}
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
index b7d653a8f..11e8a5a3b 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
@@ -574,7 +574,7 @@ public abstract class AbstractBugEditor extends EditorPart implements Listener {
keywords = value;
}
else if (key.equals("cc")) {
- // we don't do anything with the cc yet
+ // XXX we don't do anything with the cc yet
}
else if (key.equals("bug_file_loc")) {
url = value;

Back to the top