Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-07-22 21:06:06 +0000
committersminto2005-07-22 21:06:06 +0000
commit3c5c56b797a564123ad72f692393519feeb2ee29 (patch)
treeb135fdd221230f4f2a28fcc7311f310e92b7d2a8 /org.eclipse.mylyn.tasks.core/src
parentffffb926b03d642989ad458377d815e21702126e (diff)
downloadorg.eclipse.mylyn.tasks-3c5c56b797a564123ad72f692393519feeb2ee29.tar.gz
org.eclipse.mylyn.tasks-3c5c56b797a564123ad72f692393519feeb2ee29.tar.xz
org.eclipse.mylyn.tasks-3c5c56b797a564123ad72f692393519feeb2ee29.zip
0.3.3 build prep
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src')
-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