Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 247220 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java (+16 lines)
Lines 22-27 Link Here
22
import org.eclipse.core.runtime.IStatus;
22
import org.eclipse.core.runtime.IStatus;
23
import org.eclipse.core.runtime.NullProgressMonitor;
23
import org.eclipse.core.runtime.NullProgressMonitor;
24
import org.eclipse.core.runtime.Status;
24
import org.eclipse.core.runtime.Status;
25
import org.eclipse.jface.dialogs.MessageDialog;
25
import org.eclipse.jface.operation.IRunnableWithProgress;
26
import org.eclipse.jface.operation.IRunnableWithProgress;
26
import org.eclipse.mylyn.commons.core.StatusHandler;
27
import org.eclipse.mylyn.commons.core.StatusHandler;
27
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
28
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
Lines 45-50 Link Here
45
import org.eclipse.swt.widgets.Button;
46
import org.eclipse.swt.widgets.Button;
46
import org.eclipse.swt.widgets.Combo;
47
import org.eclipse.swt.widgets.Combo;
47
import org.eclipse.swt.widgets.Composite;
48
import org.eclipse.swt.widgets.Composite;
49
import org.eclipse.swt.widgets.Display;
48
import org.eclipse.swt.widgets.Label;
50
import org.eclipse.swt.widgets.Label;
49
import org.eclipse.ui.PlatformUI;
51
import org.eclipse.ui.PlatformUI;
50
52
Lines 481-486 Link Here
481
				}
483
				}
482
				if (checkVersion && client != null) {
484
				if (checkVersion && client != null) {
483
					RepositoryConfiguration config = client.getRepositoryConfiguration();
485
					RepositoryConfiguration config = client.getRepositoryConfiguration();
486
					if (config == null) {
487
						try {
488
							config = BugzillaCorePlugin.getRepositoryConfiguration(repository, true, monitor);
489
						} catch (final CoreException e) {
490
							PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
491
								public void run() {
492
									MessageDialog.openError(Display.getDefault().getActiveShell(),
493
											"Bugzilla Search Page",
494
											"Unable to get configuration. Ensure proper repository configuration in Task Repositories");
495
								}
496
							});
497
						}
498
499
					}
484
					if (config != null) {
500
					if (config != null) {
485
						versions[0] = config.getInstallVersion();
501
						versions[0] = config.getInstallVersion();
486
					}
502
					}

Return to bug 247220