Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-07-13 01:22:18 +0000
committermkersten2005-07-13 01:22:18 +0000
commitbe1e5de715cb7f403726dd3d9db59f5a0c8c6dcc (patch)
treef36fd3fdd8eae006892adaf03e48ba1f9c4ec0b3 /org.eclipse.mylyn.bugzilla.ui
parent23c8cbf0c6d069ce144d0844eb6071420662b796 (diff)
downloadorg.eclipse.mylyn.tasks-be1e5de715cb7f403726dd3d9db59f5a0c8c6dcc.tar.gz
org.eclipse.mylyn.tasks-be1e5de715cb7f403726dd3d9db59f5a0c8c6dcc.tar.xz
org.eclipse.mylyn.tasks-be1e5de715cb7f403726dd3d9db59f5a0c8c6dcc.zip
Progress on Bugzilla Bug 103099
decouple tasks from mylar.ui
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query-new.gifbin0 -> 349 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query.gifbin0 -> 332 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-new.gifbin0 -> 359 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-refresh.gifbin0 -> 362 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug.gifbin0 -> 340 bytes
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaImages.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaQueryCategoryAction.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaTaskAction.java27
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaAction.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaQueryCategory.java3
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTask.java5
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskEditor.java5
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskExternalizer.java5
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/TaskListActionContributor.java33
16 files changed, 62 insertions, 40 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query-new.gif b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query-new.gif
new file mode 100644
index 000000000..09fcacad3
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query-new.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query.gif b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query.gif
new file mode 100644
index 000000000..94e7d5d1c
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/category-query.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-new.gif b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-new.gif
new file mode 100644
index 000000000..04f3028c2
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-new.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-refresh.gif b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-refresh.gif
new file mode 100644
index 000000000..bb8538b39
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug-refresh.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug.gif b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug.gif
new file mode 100644
index 000000000..f2d2f3762
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/icons/etool16/task-bug.gif
Binary files differ
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaImages.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaImages.java
index b5a5ee8c8..8329cc214 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaImages.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaImages.java
@@ -59,11 +59,17 @@ public class BugzillaImages {
private static final URL baseURL = BugzillaUiPlugin.getDefault().getBundle().getEntry("/icons/");
public static final String T_ELCL = "elcl16";
+ public static final String T_TOOL = "etool16";
public static final ImageDescriptor IMG_TOOL_ADD_TO_FAVORITES = create(T_ELCL, "bug-favorite.gif");
public static final ImageDescriptor BUG = create(T_ELCL, "bug.gif");
public static final ImageDescriptor IMG_COMMENT = create(T_ELCL, "bug-comment.gif");
-
+ public static final ImageDescriptor TASK_BUGZILLA = create(T_TOOL, "task-bug.gif");
+ public static final ImageDescriptor TASK_BUGZILLA_NEW = create(T_TOOL, "task-bug-new.gif");
+ public static final ImageDescriptor CATEGORY_QUERY = create(T_TOOL, "category-query.gif");
+ public static final ImageDescriptor CATEGORY_QUERY_NEW = create(T_TOOL, "category-query-new.gif");
+ public static final ImageDescriptor TASK_BUG_REFRESH = create(T_TOOL, "task-bug-refresh.gif");
+
private static ImageDescriptor create(String prefix, String name) {
try {
return ImageDescriptor.createFromURL(makeIconFileURL(prefix, name));
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java
index e9980248b..0942c6b86 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java
@@ -5,6 +5,7 @@ import org.eclipse.mylar.bugzilla.core.BugzillaPlugin;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaContentProvider;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaTaskExternalizer;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaTaskListManager;
+import org.eclipse.mylar.bugzilla.ui.tasks.TaskListActionContributor;
import org.eclipse.mylar.tasks.MylarTasksPlugin;
import org.eclipse.ui.IStartup;
import org.eclipse.ui.IWorkbench;
@@ -39,7 +40,8 @@ public class BugzillaUiPlugin extends AbstractUIPlugin implements IStartup {
MylarTasksPlugin.getDefault().getTaskListExternalizer().addExternalizer(
new BugzillaTaskExternalizer()
- );
+ );
+ MylarTasksPlugin.getDefault().setContributor(new TaskListActionContributor());
}
});
}
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaQueryCategoryAction.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaQueryCategoryAction.java
index 85808f7fd..ed0249cca 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaQueryCategoryAction.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaQueryCategoryAction.java
@@ -15,10 +15,10 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaQueryCategory;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaQueryDialog;
import org.eclipse.mylar.core.MylarPlugin;
-import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.MylarTasksPlugin;
import org.eclipse.mylar.tasks.ui.views.TaskListView;
import org.eclipse.swt.widgets.Display;
@@ -40,7 +40,7 @@ public class CreateBugzillaQueryCategoryAction extends Action {
setText("Add Bugzilla Query");
setToolTipText("Add Bugzilla Query");
setId(ID);
- setImageDescriptor(TaskListImages.CATEGORY_QUERY_NEW);
+ setImageDescriptor(BugzillaImages.CATEGORY_QUERY_NEW);
}
@Override
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaTaskAction.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaTaskAction.java
index 8bfe181fd..ee94e1f0d 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaTaskAction.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateBugzillaTaskAction.java
@@ -13,10 +13,10 @@ package org.eclipse.mylar.bugzilla.ui.actions;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.BugzillaUiPlugin;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaTask;
import org.eclipse.mylar.tasks.ITask;
-import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.MylarTasksPlugin;
import org.eclipse.mylar.tasks.TaskCategory;
import org.eclipse.mylar.tasks.ui.views.TaskListView;
@@ -35,7 +35,7 @@ public class CreateBugzillaTaskAction extends Action {
setText("Add Bugzilla Report");
setToolTipText("Add Bugzilla Report");
setId(ID);
- setImageDescriptor(TaskListImages.TASK_BUGZILLA_NEW);
+ setImageDescriptor(BugzillaImages.TASK_BUGZILLA_NEW);
}
@Override
@@ -65,17 +65,26 @@ public class CreateBugzillaTaskAction extends Action {
// return;
// }
- BugzillaTask newBugTask = new BugzillaTask("Bugzilla-"+bugId, "<bugzilla info>");
- BugzillaTask bugTask = BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().getFromBugzillaTaskRegistry(newBugTask.getHandle());
- if(bugTask == null) {
- BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().addToBugzillaTaskRegistry((BugzillaTask)bugTask);
- }
+ ITask newTask = new BugzillaTask("Bugzilla-"+bugId, "<bugzilla info>");
Object selectedObject = ((IStructuredSelection)this.view.getViewer().getSelection()).getFirstElement();
if (selectedObject instanceof TaskCategory){
- ((TaskCategory)selectedObject).addTask((ITask)bugTask);
+ ((TaskCategory)selectedObject).addTask(newTask);
} else {
- MylarTasksPlugin.getTaskListManager().getTaskList().addRootTask((ITask)bugTask);
+ MylarTasksPlugin.getTaskListManager().getTaskList().addRootTask(newTask);
}
+ BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().addToBugzillaTaskRegistry((BugzillaTask)newTask);
+//
+// BugzillaTask newBugTask = new BugzillaTask("Bugzilla-"+bugId, "<bugzilla info>");
+// BugzillaTask bugTask = BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().getFromBugzillaTaskRegistry(newBugTask.getHandle());
+// if(bugTask == null) {
+// BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().addToBugzillaTaskRegistry((BugzillaTask)bugTask);
+// }
+// Object selectedObject = ((IStructuredSelection)this.view.getViewer().getSelection()).getFirstElement();
+// if (selectedObject instanceof TaskCategory){
+// ((TaskCategory)selectedObject).addTask((ITask)bugTask);
+// } else {
+// MylarTasksPlugin.getTaskListManager().getTaskList().addRootTask((ITask)bugTask);
+// }
this.view.getViewer().refresh();
}
} \ No newline at end of file
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaAction.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaAction.java
index 58fb20f7d..ce9c1c35e 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaAction.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaAction.java
@@ -18,9 +18,9 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaQueryCategory;
import org.eclipse.mylar.core.MylarPlugin;
-import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.ui.views.TaskListView;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
@@ -39,7 +39,7 @@ public class RefreshBugzillaAction extends Action {
setText("Bugzilla Rrefresh");
setToolTipText("Bugzilla Refresh");
setId(ID);
- setImageDescriptor(TaskListImages.TASK_BUG_REFRESH);
+ setImageDescriptor(BugzillaImages.TASK_BUG_REFRESH);
}
@Override
public void run() {
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java
index ef6dedef0..e98e95464 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java
@@ -21,11 +21,11 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.action.Action;
import org.eclipse.mylar.bugzilla.core.BugReport;
import org.eclipse.mylar.bugzilla.core.BugzillaRepository;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaQueryCategory;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaTask;
import org.eclipse.mylar.tasks.AbstractCategory;
import org.eclipse.mylar.tasks.ITask;
-import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.MylarTasksPlugin;
import org.eclipse.mylar.tasks.TaskCategory;
import org.eclipse.mylar.tasks.ui.views.TaskListView;
@@ -49,7 +49,7 @@ public class RefreshBugzillaReportsAction extends Action {
setText("Refresh Bugzilla reports");
setToolTipText("Refresh Bugzilla reports");
setId(ID);
- setImageDescriptor(TaskListImages.TASK_BUG_REFRESH);
+ setImageDescriptor(BugzillaImages.TASK_BUG_REFRESH);
}
public void setShowProgress(boolean show) {
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaQueryCategory.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaQueryCategory.java
index f8b43d478..f95d385e7 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaQueryCategory.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaQueryCategory.java
@@ -25,6 +25,7 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.mylar.bugzilla.core.BugzillaPlugin;
import org.eclipse.mylar.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.bugzilla.core.search.BugzillaSearchHit;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.BugzillaUiPlugin;
import org.eclipse.mylar.bugzilla.ui.search.BugzillaResultCollector;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaCategorySearchOperation.ICategorySearchListener;
@@ -76,7 +77,7 @@ public class BugzillaQueryCategory extends AbstractCategory {
public Image getIcon() {
- return TaskListImages.getImage(TaskListImages.CATEGORY_QUERY);
+ return TaskListImages.getImage(BugzillaImages.CATEGORY_QUERY);
}
public String getUrl() {
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTask.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTask.java
index 17497787f..ed0ea7035 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTask.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTask.java
@@ -33,12 +33,13 @@ import org.eclipse.mylar.bugzilla.core.BugzillaPlugin;
import org.eclipse.mylar.bugzilla.core.BugzillaRepository;
import org.eclipse.mylar.bugzilla.core.IBugzillaBug;
import org.eclipse.mylar.bugzilla.core.offline.OfflineReportsFile;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.BugzillaUiPlugin;
import org.eclipse.mylar.bugzilla.ui.OfflineView;
import org.eclipse.mylar.core.MylarPlugin;
-import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.MylarTasksPlugin;
import org.eclipse.mylar.tasks.Task;
+import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IWorkbench;
@@ -483,7 +484,7 @@ public class BugzillaTask extends Task {
}
public Image getIcon() {
- return TaskListImages.getImage(TaskListImages.TASK_BUGZILLA);
+ return TaskListImages.getImage(BugzillaImages.TASK_BUGZILLA);
}
public String getBugUrl() {
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskEditor.java
index 950a7766d..3140a9fb2 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskEditor.java
@@ -18,12 +18,13 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.mylar.bugzilla.core.BugReport;
import org.eclipse.mylar.bugzilla.core.IBugzillaAttributeListener;
+import org.eclipse.mylar.bugzilla.ui.BugzillaImages;
import org.eclipse.mylar.bugzilla.ui.editor.AbstractBugEditor;
import org.eclipse.mylar.bugzilla.ui.editor.ExistingBugEditor;
import org.eclipse.mylar.bugzilla.ui.editor.ExistingBugEditorInput;
import org.eclipse.mylar.core.MylarPlugin;
-import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.MylarTasksPlugin;
+import org.eclipse.mylar.tasks.TaskListImages;
import org.eclipse.mylar.tasks.ui.TaskEditorInput;
import org.eclipse.mylar.tasks.ui.TaskSummaryEditor;
import org.eclipse.mylar.tasks.ui.views.TaskListView;
@@ -171,7 +172,7 @@ public class BugzillaTaskEditor extends MultiPageEditorPart {
// Set the title on the editor's tab
this.setPartName("Bug #" + bugzillaEditorInput.getBugId());
- this.setTitleImage(TaskListImages.getImage(TaskListImages.TASK_BUGZILLA));
+ this.setTitleImage(TaskListImages.getImage(BugzillaImages.TASK_BUGZILLA));
}
@Override
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskExternalizer.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskExternalizer.java
index 4db885c95..67a6d810a 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskExternalizer.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTaskExternalizer.java
@@ -12,21 +12,16 @@
package org.eclipse.mylar.bugzilla.ui.tasks;
import java.util.Date;
-import java.util.List;
import org.eclipse.mylar.bugzilla.ui.tasks.BugzillaTask.BugTaskState;
import org.eclipse.mylar.core.MylarPlugin;
import org.eclipse.mylar.tasks.AbstractCategory;
import org.eclipse.mylar.tasks.ITask;
-import org.eclipse.mylar.tasks.Task;
-import org.eclipse.mylar.tasks.TaskCategory;
import org.eclipse.mylar.tasks.TaskList;
import org.eclipse.mylar.tasks.util.DefaultTaskListExternalizer;
-import org.eclipse.mylar.tasks.util.ITaskListExternalizer;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
/**
* @author Mik Kersten and Ken Sueda
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/TaskListActionContributor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/TaskListActionContributor.java
index e5afdcb54..3ab8638c7 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/TaskListActionContributor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/TaskListActionContributor.java
@@ -11,27 +11,34 @@
package org.eclipse.mylar.bugzilla.ui.tasks;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.jface.action.IAction;
import org.eclipse.mylar.bugzilla.ui.actions.CreateBugzillaQueryCategoryAction;
import org.eclipse.mylar.bugzilla.ui.actions.CreateBugzillaTaskAction;
import org.eclipse.mylar.bugzilla.ui.actions.RefreshBugzillaAction;
import org.eclipse.mylar.bugzilla.ui.actions.RefreshBugzillaReportsAction;
+import org.eclipse.mylar.tasks.ITaskListActionContributor;
import org.eclipse.mylar.tasks.ui.views.TaskListView;
/**
* @author Mik Kersten and Ken Sueda
*/
-public class TaskListActionContributor {
+public class TaskListActionContributor implements ITaskListActionContributor {
+
+ public List<IAction> getToolbarActions(TaskListView view) {
+ List<IAction> actions = new ArrayList<IAction>();
+ actions.add(new CreateBugzillaQueryCategoryAction(view));
+ actions.add(new CreateBugzillaTaskAction(view));
+ actions.add(new RefreshBugzillaReportsAction(view));
+ return actions;
+ }
- private RefreshBugzillaReportsAction refresh;
- private CreateBugzillaQueryCategoryAction createBugzillaQueryCategory;
- private CreateBugzillaTaskAction createBugzillaTask;
- private RefreshBugzillaAction refreshQuery;
-
- public TaskListActionContributor(TaskListView view) {
- refresh = new RefreshBugzillaReportsAction(view);
- createBugzillaQueryCategory = new CreateBugzillaQueryCategoryAction(view);
- createBugzillaTask = new CreateBugzillaTaskAction(view);
- refreshQuery = new RefreshBugzillaAction(view);
- }
-
+ public List<IAction> getPopupActions(TaskListView view) {
+ List<IAction> actions = new ArrayList<IAction>();
+ actions.add(new CreateBugzillaTaskAction(view));
+ actions.add(new RefreshBugzillaAction(view));
+ return actions;
+ }
}

Back to the top