Update the code to avoid and aleatory bug on the web start installer, where the value for the checkbox 'Start Server' is not taken into account. The fix consists basically on using different FieldNames for this checkbox in the upgrade and in the installer.
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2008 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.quicksetup.installer; |
| | | |
| | |
| | | */ |
| | | private void updateUserDataForReviewPanel(QuickSetup qs) |
| | | { |
| | | Boolean b = (Boolean) qs.getFieldValue(FieldName.SERVER_START); |
| | | Boolean b = (Boolean) qs.getFieldValue(FieldName.SERVER_START_INSTALLER); |
| | | getUserData().setStartServer(b); |
| | | b = (Boolean) qs.getFieldValue(FieldName.ENABLE_WINDOWS_SERVICE); |
| | | getUserData().setEnableWindowsService(b); |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2008 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.installer.ui; |
| | |
| | | public Object getFieldValue(FieldName fieldName) |
| | | { |
| | | Object value = null; |
| | | if (fieldName == FieldName.SERVER_START) |
| | | if (fieldName == FieldName.SERVER_START_INSTALLER) |
| | | { |
| | | value = getStartCheckBox().isSelected(); |
| | | } |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2008 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.ui; |
| | |
| | | /** |
| | | * The value associated with this is a Boolean. |
| | | */ |
| | | SERVER_START, |
| | | SERVER_START_INSTALLER, |
| | | /** |
| | | * The value associated with this is a Boolean. |
| | | */ |
| | | SERVER_START_UPGRADER, |
| | | /** |
| | | * The value associated with this is a Boolean. |
| | | */ |
| | |
| | | |
| | | } else if (cStep == UpgradeWizardStep.REVIEW) { |
| | | Boolean startServer = |
| | | (Boolean) qs.getFieldValue(FieldName.SERVER_START); |
| | | (Boolean) qs.getFieldValue(FieldName.SERVER_START_UPGRADER); |
| | | uud.setStartServer(startServer); |
| | | } |
| | | |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2008 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.upgrader.ui; |
| | |
| | | */ |
| | | public Object getFieldValue(FieldName fieldName) { |
| | | Object value = null; |
| | | if (fieldName == FieldName.SERVER_START) { |
| | | if (fieldName == FieldName.SERVER_START_UPGRADER) { |
| | | value = getBottomComponent().isSelected(); |
| | | } |
| | | return value; |