Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaUiBridge.java15
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java2
2 files changed, 7 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaUiBridge.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaUiBridge.java
index ee76ab477..f558a686e 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaUiBridge.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaUiBridge.java
@@ -25,11 +25,8 @@ import org.eclipse.mylar.bugzilla.ui.BugzillaOpenStructure;
import org.eclipse.mylar.bugzilla.ui.ViewBugzillaAction;
import org.eclipse.mylar.bugzilla.ui.editor.AbstractBugEditor;
import org.eclipse.mylar.bugzilla.ui.outline.BugzillaOutlinePage;
-import org.eclipse.mylar.bugzilla.ui.tasklist.BugzillaTask;
import org.eclipse.mylar.bugzilla.ui.tasklist.BugzillaTaskEditor;
import org.eclipse.mylar.core.IMylarContextNode;
-import org.eclipse.mylar.tasklist.ITask;
-import org.eclipse.mylar.tasklist.MylarTasklistPlugin;
import org.eclipse.mylar.ui.IMylarUiBridge;
import org.eclipse.mylar.ui.MylarImages;
import org.eclipse.ui.IEditorPart;
@@ -64,15 +61,15 @@ public class BugzillaUiBridge implements IMylarUiBridge {
List<BugzillaOpenStructure> l = new ArrayList<BugzillaOpenStructure>(1);
l.add(new BugzillaOpenStructure(server, bugId, commentNumer));
- ITask task= MylarTasklistPlugin.getTaskListManager().getTaskForHandle(bugHandle);
- if (task != null && task instanceof BugzillaTask) {
- BugzillaTask bugzillaTask = (BugzillaTask)task;
- bugzillaTask.openTask(commentNumer);
- } else {
+// ITask task= MylarTasklistPlugin.getTaskListManager().getTaskForHandle(bugHandle);
+// if (task != null && task instanceof BugzillaTask) {
+// BugzillaTask bugzillaTask = (BugzillaTask)task;
+// bugzillaTask.openTask(commentNumer);
+// } else {
// open the bug in the editor
ViewBugzillaAction viewBugs = new ViewBugzillaAction("Display bugs in editor", l);
viewBugs.schedule();
- }
+// }
}
public ILabelProvider getLabelProvider() {
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java
index 89aa70e87..96891f8f6 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java
@@ -116,7 +116,7 @@ public class BugzillaHyperLinkDetector extends AbstractMylarHyperlinkDetector {
end += commentStart;
if(startOffset >= start && endOffset <= end){
- IRegion sregion= new Region(start, end);
+ IRegion sregion= new Region(start, end-start);
return new IHyperlink[] {new BugzillaHyperLink(sregion, bugId)};
}
}

Back to the top