Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-01-19 14:16:44 -0500
committerrelves2007-01-19 14:16:44 -0500
commitedf561bb01f9d049fd6db491df445d8e807f1c18 (patch)
treed6c7be99783928aea55622bca1557b2f527bfbe5 /org.eclipse.mylyn.bugzilla.ui
parent0b5898baf18b1c0fc7af5b5c7b77da49712e1247 (diff)
downloadorg.eclipse.mylyn.tasks-edf561bb01f9d049fd6db491df445d8e807f1c18.tar.gz
org.eclipse.mylyn.tasks-edf561bb01f9d049fd6db491df445d8e807f1c18.tar.xz
org.eclipse.mylyn.tasks-edf561bb01f9d049fd6db491df445d8e807f1c18.zip
NEW - bug 170683: Move Show Bug Activity into the Actions section
https://bugs.eclipse.org/bugs/show_bug.cgi?id=170683
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-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