Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-12 19:03:22 +0000
committerfbecker2010-08-12 19:03:22 +0000
commitf764c737fbace31c9f8d0a01ba9e8298ecaa186a (patch)
tree9e786803ec7fe4b0fdeb1995b072537194ebfeaa /org.eclipse.mylyn.bugzilla.ui
parentea46e03be3f0fb86adce4f035cbebe1149d3fda5 (diff)
downloadorg.eclipse.mylyn.tasks-f764c737fbace31c9f8d0a01ba9e8298ecaa186a.tar.gz
org.eclipse.mylyn.tasks-f764c737fbace31c9f8d0a01ba9e8298ecaa186a.tar.xz
org.eclipse.mylyn.tasks-f764c737fbace31c9f8d0a01ba9e8298ecaa186a.zip
ASSIGNED - bug 282211: [patch] create Webservice API
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282211
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
index 30e830197..ac23e185c 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
@@ -458,8 +458,22 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
repository.setProperty(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE, descriptorFile.getText());
}
if (repositoryConfiguration != null) {
- repositoryConfiguration.setValidTransitions(descriptorFile.getText(),
- useXMLRPCstatusTransitions.getSelection());
+ try {
+ final String descriptorFileName = descriptorFile.getText();
+ final boolean useXMLRPCstatusTransitionsSelection = useXMLRPCstatusTransitions.getSelection();
+ getWizard().getContainer().run(true, false, new IRunnableWithProgress() {
+ public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
+ repositoryConfiguration.setValidTransitions(monitor, descriptorFileName,
+ useXMLRPCstatusTransitionsSelection);
+ }
+ });
+ } catch (InvocationTargetException e1) {
+ if (e1.getCause() != null) {
+ setErrorMessage(e1.getCause().getMessage());
+ }
+ } catch (InterruptedException e1) {
+ // ignore
+ }
}
if (!autodetectPlatformOS.getSelection()) {

Back to the top