summaryrefslogtreecommitdiff
path: root/javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:06:03 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:06:03 +0200
commitd8b6cc3b44ddcf9647653dc8ee88f3d9024feebf (patch)
tree3d395e7313279565a46774ac2921b987e24b9fc5 /javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java
parentb52ec9a4fa9b8eb93a181fac3613f1de7d1d0825 (diff)
recreated tag libreoffice-3.3.0.4 which had these commits:
commit 04144eede67d986878496224a1bfec8b5666f1fe (tag: refs/tags/libreoffice-3.3.0.4, refs/remotes/origin/libreoffice-3-3-0) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 18 19:01:16 2011 +0100 Version 3.3.0.4, tag libreoffice-3.3.0.4 (3.3-rc4) commit c2d496a993f9643bc8a737c505f070246fcf6fad Author: Kohei Yoshida <kyoshida@novell.com> Date: Fri Jan 14 11:53:12 2011 -0500 Remove pesky on-line registration menu entry. (fdo#33112) .../uiconfig/sbibliography/menubar/menubar.xml | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit da172d85638baf1bcc1dd2bdc985f1a50d308bc3 Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:59:36 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
split repo tag: components_libreoffice-3.3.0.4
Diffstat (limited to 'javainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java')
-rwxr-xr-xjavainstaller2/src/JavaSetup/org/openoffice/setup/Controller/ChooseUninstallationTypeCtrl.java42
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;
}
-
+
}