Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-01-02 18:02:15 +0000
committerrelves2007-01-02 18:02:15 +0000
commit4ded5843447e5cca92f8975f51843361de6553ee (patch)
tree50722e909f2c66c359367841863ba3c6e93e5600
parentc8262c7371815d064849d44afec81401ff51e69d (diff)
downloadorg.eclipse.mylyn.tasks-4ded5843447e5cca92f8975f51843361de6553ee.tar.gz
org.eclipse.mylyn.tasks-4ded5843447e5cca92f8975f51843361de6553ee.tar.xz
org.eclipse.mylyn.tasks-4ded5843447e5cca92f8975f51843361de6553ee.zip
ASSIGNED - bug 164721: move user guide items out of FAQ
https://bugs.eclipse.org/bugs/show_bug.cgi?id=164721
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java39
1 files changed, 9 insertions, 30 deletions
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 b7ed1c52e..6959e6abd 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
@@ -97,46 +97,25 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
if (!forceSynchExecForTesting) {
throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, IStatus.OK,
"invalid report id: " + id, nfe));
- // MessageDialog.openInformation(null,
- // TasksUiPlugin.TITLE_DIALOG, "Invalid report id: " + id);
}
return null;
}
String handle = AbstractRepositoryTask.getHandle(repository.getUrl(), bugId);
ITask task = taskList.getTask(handle);
-
+ AbstractRepositoryTask repositoryTask = null;
if (task == null) {
RepositoryTaskData taskData = null;
- // try {
taskData = taskDataHandler.getTaskData(repository, id);
- // BugzillaClient client = getClientManager().getClient(repository);
- // taskData = client.getTaskData(Integer.parseInt(id));
if (taskData != null) {
- task = new BugzillaTask(handle, taskData.getId() + ": " + taskData.getDescription(), true);
- ((BugzillaTask) task).setTaskData(taskData);
- // ((BugzillaTask) task).setLastSyncDateStamp(lastSyncDateStamp)
- taskList.addTask(task);
+ repositoryTask = new BugzillaTask(handle, taskData.getId() + ": " + taskData.getDescription(), true);
+ repositoryTask.setTaskData(taskData);
+ taskList.addTask(repositoryTask);
}
- // } catch (final UnrecognizedReponseException e) {
- // throw new CoreException(new Status(IStatus.ERROR,
- // BugzillaCorePlugin.PLUGIN_ID, 0,
- // "Report retrieval failed. Unrecognized response from " +
- // repository.getUrl() + ".", e));
- // } catch (final FileNotFoundException e) {
- // throw new CoreException(
- // new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, 0,
- // "Report download from "
- // + repository.getUrl() + " failed. File not found: " +
- // e.getMessage(), e));
- // } catch (final Exception e) {
- // throw new CoreException(new Status(IStatus.ERROR,
- // BugzillaCorePlugin.PLUGIN_ID, 0,
- // "Report download from " + repository.getUrl() + " failed, please
- // see details.", e));
- // }
+ } else if (task instanceof AbstractRepositoryTask) {
+ repositoryTask = (AbstractRepositoryTask) task;
}
- return (AbstractRepositoryTask) task;
+ return repositoryTask;
}
@Override
@@ -300,8 +279,8 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
for (RepositoryTaskAttribute attribute : existingReport.getAttributes()) {
BugzillaReportElement element = BugzillaReportElement.valueOf(attribute.getID().trim().toUpperCase());
attribute.clearOptions();
- List<String> optionValues = BugzillaCorePlugin.getRepositoryConfiguration(taskRepository,
- false).getOptionValues(element, product);
+ List<String> optionValues = BugzillaCorePlugin.getRepositoryConfiguration(taskRepository, false)
+ .getOptionValues(element, product);
if (element != BugzillaReportElement.OP_SYS && element != BugzillaReportElement.BUG_SEVERITY
&& element != BugzillaReportElement.PRIORITY && element != BugzillaReportElement.BUG_STATUS) {
Collections.sort(optionValues);

Back to the top