[534088] The bundle pool controls in the installer's advanced mode are
disabled when no product version is selected
https://bugs.eclipse.org/bugs/show_bug.cgi?id=534088
diff --git a/plugins/org.eclipse.oomph.setup.installer/src/org/eclipse/oomph/setup/internal/installer/ProductPage.java b/plugins/org.eclipse.oomph.setup.installer/src/org/eclipse/oomph/setup/internal/installer/ProductPage.java
index 158e052..3468ea5 100644
--- a/plugins/org.eclipse.oomph.setup.installer/src/org/eclipse/oomph/setup/internal/installer/ProductPage.java
+++ b/plugins/org.eclipse.oomph.setup.installer/src/org/eclipse/oomph/setup/internal/installer/ProductPage.java
@@ -1045,31 +1045,19 @@
if (poolButton != null)
{
- poolButton.setEnabled(productSelected);
-
- boolean poolNeeded = productSelected && poolButton.getSelection();
- poolComboViewer.getControl().setEnabled(poolNeeded);
- managePoolsButton.setEnabled(poolNeeded);
-
currentBundlePoolChanging = true;
- if (poolNeeded)
- {
- if (currentBundlePool != null)
- {
- poolComboViewer.setSelection(new StructuredSelection(currentBundlePool));
- }
- else
- {
- if (error == null)
- {
- error = "Select a bundle pool or disable the use of a bundle pool.";
- }
- poolComboViewer.setSelection(StructuredSelection.EMPTY);
- }
+ if (currentBundlePool != null)
+ {
+ poolComboViewer.setSelection(new StructuredSelection(currentBundlePool));
}
else
{
+ if (error == null && productSelected)
+ {
+ error = "Select a bundle pool or disable the use of a bundle pool.";
+ }
+
poolComboViewer.setSelection(StructuredSelection.EMPTY);
}