Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-09-06 19:19:01 +0000
committerfbecker2010-09-06 19:19:01 +0000
commitee50c8d894165538090c601936ba01201dd4a8b3 (patch)
tree8ffd1eb58ee58e4feb0898a019ad19afc213e806 /org.eclipse.mylyn.bugzilla.ui
parent68dcdcbb1621b1be81f7ece47f9bffdae0ebb7f8 (diff)
downloadorg.eclipse.mylyn.tasks-ee50c8d894165538090c601936ba01201dd4a8b3.tar.gz
org.eclipse.mylyn.tasks-ee50c8d894165538090c601936ba01201dd4a8b3.tar.xz
org.eclipse.mylyn.tasks-ee50c8d894165538090c601936ba01201dd4a8b3.zip
ASSIGNED - bug 324525: Repository Settings Page and custom status workflow problems
https://bugs.eclipse.org/bugs/show_bug.cgi?id=324525
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java
index c9ed2d0ff..b9134d3a1 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java
@@ -14,12 +14,17 @@ package org.eclipse.mylyn.internal.bugzilla.ui;
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
+import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClientManager;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfiguration;
+import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
+import org.eclipse.mylyn.tasks.core.sync.TaskJob;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
@@ -90,8 +95,17 @@ public class BugzillaUiPlugin extends AbstractUIPlugin {
BugzillaRepositoryConnector bugzillaConnector = (BugzillaRepositoryConnector) TasksUi.getRepositoryManager()
.getRepositoryConnector(BugzillaCorePlugin.CONNECTOR_KIND);
-
- TasksUi.getRepositoryManager().addListener(bugzillaConnector.getClientManager());
+ BugzillaClientManager clientManager = bugzillaConnector.getClientManager();
+ clientManager.setRepositoryConfigurationUpdateJobChangeAdapter(new JobChangeAdapter() {
+ @Override
+ public void done(IJobChangeEvent event) {
+ TaskJob taskJob = ((TaskJob) (event.getJob()));
+ if (taskJob.getStatus() != null) {
+ TasksUiInternal.asyncLogAndDisplayStatus("Configuration_Refresh_Failed", taskJob.getStatus());
+ }
+ }
+ });
+ TasksUi.getRepositoryManager().addListener(clientManager);
// NOTE: initializing extensions in start(..) has caused race
// conditions previously

Back to the top