diff options
author | relves | 2006-10-16 18:44:36 +0000 |
---|---|---|
committer | relves | 2006-10-16 18:44:36 +0000 |
commit | 7c26bcc66a288d9374bfa6e8fcc77da9ac73e7c0 (patch) | |
tree | 88b5a3bca8cd40dcf8581fa1338c2c99ae666666 /org.eclipse.mylyn.bugzilla.ui | |
parent | 71bf3c7d322515ae955476f391fb4b1fc11b20c6 (diff) | |
download | org.eclipse.mylyn.tasks-7c26bcc66a288d9374bfa6e8fcc77da9ac73e7c0.tar.gz org.eclipse.mylyn.tasks-7c26bcc66a288d9374bfa6e8fcc77da9ac73e7c0.tar.xz org.eclipse.mylyn.tasks-7c26bcc66a288d9374bfa6e8fcc77da9ac73e7c0.zip |
NEW - bug 159397: New bugzilla task editor says I'm using Windows Vista instead of XP
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java index 9bb211200..83c52f899 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java @@ -72,6 +72,8 @@ import org.eclipse.ui.PlatformUI; */ public class BugzillaProductPage extends WizardPage implements Listener { + private static final String OPTION_ALL = "All"; + // A Map from Java's OS and Platform to Buzilla's private Map<String, String> java2buzillaOSMap = new HashMap<String, String>(); @@ -177,19 +179,19 @@ public class BugzillaProductPage extends WizardPage implements Listener { listBox.setSelection(getSelectedProducts()); listBox.showSelection(); -// listBox.addSelectionListener(new SelectionListener() { -// -// public void widgetDefaultSelected(SelectionEvent e) { -// // ignore -// } -// -// public void widgetSelected(SelectionEvent e) { -// getWizard().performFinish(); -// getWizard().dispose(); -// // TODO: is this the wrong way of doing the close? -// getContainer().getShell().close(); -// } -// }); + // listBox.addSelectionListener(new SelectionListener() { + // + // public void widgetDefaultSelected(SelectionEvent e) { + // // ignore + // } + // + // public void widgetSelected(SelectionEvent e) { + // getWizard().performFinish(); + // getWizard().dispose(); + // // TODO: is this the wrong way of doing the close? + // getContainer().getShell().close(); + // } + // }); Button updateButton = new Button(composite, SWT.LEFT | SWT.PUSH); updateButton.setText(LABEL_UPDATE); @@ -485,10 +487,17 @@ public class BugzillaProductPage extends WizardPage implements Listener { } // Set the OS and the Platform in the model - if (bugzillaOS != null && opSysAttribute != null) + if (bugzillaOS != null && opSysAttribute != null) { opSysAttribute.setValue(bugzillaOS); - if (bugzillaPlatform != null && platformAttribute != null) + } else if (opSysAttribute != null && opSysAttribute.getOptionValues().values().contains(OPTION_ALL)) { + opSysAttribute.setValue(OPTION_ALL); + } + + if (bugzillaPlatform != null && platformAttribute != null) { platformAttribute.setValue(bugzillaPlatform); + } else if (platformAttribute != null && platformAttribute.getOptionValues().values().contains(OPTION_ALL)) { + opSysAttribute.setValue(OPTION_ALL); + } } catch (Exception e) { MylarStatusHandler.fail(e, "could not set platform options", false); |