diff options
Diffstat (limited to 'javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java')
-rwxr-xr-x | javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java b/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java index d1c5e69430db..e24f3859fbad 100755 --- a/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java +++ b/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.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 @@ -37,32 +37,32 @@ import org.openoffice.setup.SetupData.SetupDataProvider; import org.openoffice.setup.Util.ModuleCtrl; public class ChooseUninstallationTypeCtrl extends PanelController implements ActionListener { - + private String helpFile; - + public ChooseUninstallationTypeCtrl() { super("ChooseUninstallationType", new ChooseUninstallationType()); helpFile = "String_Helpfile_ChooseUninstallationType"; } - + public String getNext() { InstallData data = InstallData.getInstance(); - + if ( data.getInstallationType().equals(data.getCustomActionCommand()) ) { return new String("ChooseUninstallationComponents"); } else if ( data.getInstallationType().equals(data.getTypicalActionCommand()) ) { - return new String("UninstallationImminent"); + return new String("UninstallationImminent"); } else { - System.err.println("Error: Unknown uninstallation type!" ); - return new String("Error"); + System.err.println("Error: Unknown uninstallation type!" ); + return new String("Error"); } } - + public String getPrevious() { return new String("UninstallationPrologue"); - } - + } + public void beforeShow() { InstallData data = InstallData.getInstance(); @@ -75,20 +75,20 @@ public class ChooseUninstallationTypeCtrl extends PanelController implements Act public boolean afterShow(boolean nextButtonPressed) { boolean repeatDialog = false; - + ChooseUninstallationType panel = (ChooseUninstallationType)getPanel(); panel.removeActionListener((ChooseUninstallationTypeCtrl)this); - + if ( nextButtonPressed ) { InstallData data = InstallData.getInstance(); PackageDescription packageData = SetupDataProvider.getPackageDescription(); - + // Typical uninstallation type 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()) { ModuleCtrl.restoreTypicalSelectionStates(packageData); } @@ -100,7 +100,7 @@ public class ChooseUninstallationTypeCtrl extends PanelController implements Act if ( ! data.typicalSelectionStateSaved()) { ModuleCtrl.saveTypicalSelectionStates(packageData); data.setTypicalSelectionStateSaved(true); - } + } // Setting custom selection state values, if they have been saved before. if ( data.customSelectionStateSaved() ) { @@ -111,23 +111,23 @@ public class ChooseUninstallationTypeCtrl extends PanelController implements Act 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 uninstallation type: " + data.getTypicalActionCommand()); + // System.err.println("Setting uninstallation type: " + data.getTypicalActionCommand()); } else if (evt.getActionCommand().equals(data.getCustomActionCommand())) { data.setInstallationType(data.getCustomActionCommand()); - // System.err.println("Setting uninstallation type: " + data.getCustomActionCommand()); + // System.err.println("Setting uninstallation type: " + data.getCustomActionCommand()); } - + } public final String getHelpFileName () { return this.helpFile; } - + } |