summaryrefslogtreecommitdiff
path: root/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java
diff options
context:
space:
mode:
Diffstat (limited to 'javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java')
-rwxr-xr-xjavainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java b/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java
index 25432ae7def3..ee7bea2e6f30 100755
--- a/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java
+++ b/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseInstallationTypeCtrl.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,47 +41,47 @@ import java.util.Vector;
import org.openoffice.setup.Util.PackageCollector;
public class ChooseInstallationTypeCtrl extends PanelController implements ActionListener {
-
+
private String helpFile;
-
+
public ChooseInstallationTypeCtrl() {
super("ChooseInstallationType", new ChooseInstallationType());
helpFile = "String_Helpfile_ChooseInstallationType";
}
-
+
public String getNext() {
InstallData data = InstallData.getInstance();
-
+
if ( data.getInstallationType().equals(data.getCustomActionCommand()) ) {
return new String("ChooseComponents");
} else if ( data.getInstallationType().equals(data.getTypicalActionCommand()) ) {
- return new String("InstallationImminent");
+ return new String("InstallationImminent");
} else {
- System.err.println("Error: Unknown installation type!" );
- return new String("Error");
+ System.err.println("Error: Unknown installation type!" );
+ return new String("Error");
}
}
-
+
public String getPrevious() {
InstallData data = InstallData.getInstance();
-
+
if ( data.isRootInstallation() ) {
if ( data.hideEula() ) {
- return new String("Prologue");
+ return new String("Prologue");
} else {
return new String("AcceptLicense");
}
} else {
return new String("ChooseDirectory");
}
- }
+ }
public final String getHelpFileName () {
return this.helpFile;
}
-
+
public void beforeShow() {
InstallData data = InstallData.getInstance();
@@ -91,22 +91,22 @@ public class ChooseInstallationTypeCtrl extends PanelController implements Actio
panel.setTypicalActionCommand(data.getTypicalActionCommand());
panel.setCustomActionCommand(data.getCustomActionCommand());
}
-
+
public boolean afterShow(boolean nextButtonPressed) {
boolean repeatDialog = false;
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);
@@ -125,7 +125,7 @@ public class ChooseInstallationTypeCtrl extends PanelController implements Actio
if ( data.logModuleStates() ) {
Dumper.logModuleStates(packageData, "ChooseInstallationType: After setHiddenModuleSettingsInstall");
}
-
+
// Collecting packages to install
Vector installPackages = new Vector();
PackageCollector.collectInstallPackages(packageData, installPackages);
@@ -134,7 +134,7 @@ public class ChooseInstallationTypeCtrl extends PanelController implements Actio
// Check disc space
if ( Calculator.notEnoughDiscSpace(data) ) {
repeatDialog = true;
- }
+ }
}
// Custom installation type
@@ -145,7 +145,7 @@ public class ChooseInstallationTypeCtrl extends PanelController implements Actio
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");
@@ -156,19 +156,19 @@ public class ChooseInstallationTypeCtrl extends PanelController implements Actio
return repeatDialog;
}
-
+
public void actionPerformed(ActionEvent evt) {
InstallData data = InstallData.getInstance();
if (evt.getActionCommand().equals(data.getTypicalActionCommand())) {
data.setInstallationType(data.getTypicalActionCommand());
- // System.err.println("Setting installation type: " + data.getTypicalActionCommand());
+ // System.err.println("Setting installation type: " + data.getTypicalActionCommand());
} else if (evt.getActionCommand().equals(data.getCustomActionCommand())) {
data.setInstallationType(data.getCustomActionCommand());
- // System.err.println("Setting installation type: " + data.getCustomActionCommand());
+ // System.err.println("Setting installation type: " + data.getCustomActionCommand());
}
-
+
}
-
+
}