Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java43
1 files changed, 17 insertions, 26 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
index cc3cab5df..88b2409d1 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
@@ -246,18 +246,21 @@ public class BugzillaTaskEditor extends AbstractRepositoryTaskEditor {
addVoting(composite);
-// label = toolkit.createLabel(composite, "");
-// Hyperlink viewActivity = toolkit.createHyperlink(composite, "Show Bug Activity", SWT.NONE);
-// viewActivity.addHyperlinkListener(new HyperlinkAdapter() {
-// @Override
-// public void linkActivated(HyperlinkEvent e) {
-// if (BugzillaTaskEditor.this.getEditor() instanceof TaskEditor) {
-// TaskEditor mylarTaskEditor = (TaskEditor) BugzillaTaskEditor.this.getEditor();
-// mylarTaskEditor.displayInBrowser(repository.getUrl() + IBugzillaConstants.URL_BUG_ACTIVITY
-// + taskData.getId());
-// }
-// }
-// });
+ // label = toolkit.createLabel(composite, "");
+ // Hyperlink viewActivity = toolkit.createHyperlink(composite, "Show Bug
+ // Activity", SWT.NONE);
+ // viewActivity.addHyperlinkListener(new HyperlinkAdapter() {
+ // @Override
+ // public void linkActivated(HyperlinkEvent e) {
+ // if (BugzillaTaskEditor.this.getEditor() instanceof TaskEditor) {
+ // TaskEditor mylarTaskEditor = (TaskEditor)
+ // BugzillaTaskEditor.this.getEditor();
+ // mylarTaskEditor.displayInBrowser(repository.getUrl() +
+ // IBugzillaConstants.URL_BUG_ACTIVITY
+ // + taskData.getId());
+ // }
+ // }
+ // });
// If groups is available add roles
if (taskData.getAttribute(BugzillaReportElement.GROUP.getKeyString()) != null) {
@@ -901,20 +904,8 @@ public class BugzillaTaskEditor extends AbstractRepositoryTaskEditor {
urlText.addListener(SWT.FocusIn, new GenericListener());
}
- protected void addActionButtons(Composite buttonComposite) {
- super.addActionButtons(buttonComposite);
- Hyperlink hyperlink = toolkit.createHyperlink(buttonComposite, "Past activity", SWT.NONE);
- hyperlink.addHyperlinkListener(new HyperlinkAdapter() {
- @Override
- public void linkActivated(HyperlinkEvent e) {
- if (BugzillaTaskEditor.this.getEditor() instanceof TaskEditor) {
- TaskEditor mylarTaskEditor = (TaskEditor) BugzillaTaskEditor.this.getEditor();
- mylarTaskEditor.displayInBrowser(repository.getUrl() + IBugzillaConstants.URL_BUG_ACTIVITY
- + taskData.getId());
- }
- }
- });
-
+ protected String getActivityUrl() {
+ return repository.getUrl() + IBugzillaConstants.URL_BUG_ACTIVITY + taskData.getId();
}
// protected void createDescriptionLayout(Composite composite) {
// // This is migration code from 0.6.1 -> 0.6.2

Back to the top