ChooseInstallationType panel = (ChooseInstallationType)getPanel();
panel.removeActionListener((ChooseInstallationTypeCtrl)this);
if ( nextButtonPressed ) {
InstallData data = InstallData.getInstance();
PackageDescription packageData = SetupDataProvider.getPackageDescription();
if ( data.getInstallationType().equals(data.getTypicalActionCommand()) ) {
// If typical selection state values have been saved before,
// it is now time to restore them
if ( data.typicalSelectionStateSaved()) {
// System.err.println("Restoring typical selection states");
ModuleCtrl.restoreTypicalSelectionStates(packageData);
}
if ( data.logModuleStates() ) {
Dumper.logModuleStates(packageData, "ChooseInstallationType: Before setHiddenModuleSettingsInstall");
}
// For standard installation type, the hidden modules have to be defined here.
// Then it is possible to calculate the size of the installed product, to show a warning
// and to set the repeatDialog value to true
ModuleCtrl.setHiddenModuleSettingsInstall(packageData);
// Dumper.dumpInstallPackages(packageData);
if ( data.logModuleStates() ) {
Dumper.logModuleStates(packageData, "ChooseInstallationType: After setHiddenModuleSettingsInstall");
}
// Collecting packages to install
Vector installPackages = new Vector();
PackageCollector.collectInstallPackages(packageData, installPackages);
data.setInstallPackages(installPackages);
// Check disc space
if ( Calculator.notEnoughDiscSpace(data) ) {
repeatDialog = true;
}
}
// Custom installation type
if (( data.getInstallationType().equals(data.getCustomActionCommand() ))) {
// Saving typical selection state values, if they are not already saved.
if ( ! data.typicalSelectionStateSaved()) {
// System.err.println("Saving typical selection states");
ModuleCtrl.saveTypicalSelectionStates(packageData);
data.setTypicalSelectionStateSaved(true);
}
// Setting custom selection state values, if they have been saved before.
if ( data.customSelectionStateSaved() ) {
// System.err.println("Restoring custom selection states");
ModuleCtrl.restoreCustomSelectionStates(packageData);
}
}
}