Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2007-05-28 22:45:35 +0000
committerspingel2007-05-28 22:45:35 +0000
commitead5ed554c0f7ec004911899ecc725a5e70352d0 (patch)
tree964e5c48378c0a97d1597e10b8ede952855a1e6a /org.eclipse.mylyn.bugzilla.core
parent8397bf0e1b4224a457e00657599f93db018a639b (diff)
downloadorg.eclipse.mylyn.tasks-ead5ed554c0f7ec004911899ecc725a5e70352d0.tar.gz
org.eclipse.mylyn.tasks-ead5ed554c0f7ec004911899ecc725a5e70352d0.tar.xz
org.eclipse.mylyn.tasks-ead5ed554c0f7ec004911899ecc725a5e70352d0.zip
NEW - bug 143011: [api] synchronization jobs should be cancellable
https://bugs.eclipse.org/bugs/show_bug.cgi?id=143011
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttachmentHandler.java5
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java4
3 files changed, 7 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttachmentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttachmentHandler.java
index 627820fdd..58fc7934d 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttachmentHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttachmentHandler.java
@@ -17,6 +17,7 @@ import java.io.IOException;
import java.io.OutputStream;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylar.core.MylarStatusHandler;
@@ -50,7 +51,7 @@ public class BugzillaAttachmentHandler implements IAttachmentHandler {
}
}
- public void downloadAttachment(TaskRepository repository, RepositoryAttachment attachment, File file)
+ public void downloadAttachment(TaskRepository repository, RepositoryAttachment attachment, File file, IProgressMonitor monitor)
throws CoreException {
if (repository == null || attachment == null || file == null) {
MylarStatusHandler.log("Unable to download. Null argument.", this);
@@ -83,7 +84,7 @@ public class BugzillaAttachmentHandler implements IAttachmentHandler {
}
public void uploadAttachment(TaskRepository repository, AbstractRepositoryTask task, String comment,
- String description, File file, String contentType, boolean isPatch) throws CoreException {
+ String description, File file, String contentType, boolean isPatch, IProgressMonitor monitor) throws CoreException {
try {
String bugId = task.getTaskId();
BugzillaClient client = connector.getClientManager().getClient(repository);
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
index 44abe1ef8..4a40730ed 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
@@ -116,7 +116,7 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
if (subTask == null && retrieveSubTasks) {
if (!subId.trim().equals(taskData.getId()) && !subId.equals("")) {
try {
- subTask = createTaskFromExistingId(repository, subId, false);
+ subTask = createTaskFromExistingId(repository, subId, false, new NullProgressMonitor());
} catch (CoreException e) {
// ignore
}
@@ -394,7 +394,7 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
}
@Override
- public void updateTaskFromRepository(TaskRepository repository, AbstractRepositoryTask repositoryTask) {
+ public void updateTaskFromRepository(TaskRepository repository, AbstractRepositoryTask repositoryTask, IProgressMonitor monitor) {
// ignore
}
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
index c091d83ef..bf05cc090 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
@@ -65,7 +65,7 @@ public class BugzillaTaskDataHandler implements ITaskDataHandler {
this.connector = connector;
}
- public RepositoryTaskData getTaskData(TaskRepository repository, String taskId) throws CoreException {
+ public RepositoryTaskData getTaskData(TaskRepository repository, String taskId, IProgressMonitor monitor) throws CoreException {
try {
BugzillaClient client = connector.getClientManager().getClient(repository);
@@ -101,7 +101,7 @@ public class BugzillaTaskDataHandler implements ITaskDataHandler {
}
}
- public String postTaskData(TaskRepository repository, RepositoryTaskData taskData) throws CoreException {
+ public String postTaskData(TaskRepository repository, RepositoryTaskData taskData, IProgressMonitor monitor) throws CoreException {
try {
BugzillaClient client = connector.getClientManager().getClient(repository);
try {

Back to the top