return s;
}
public void beforeShow() {
ChooseDirectory panel = (ChooseDirectory)getPanel();
InstallData data = InstallData.getInstance();
if ( data.getInstallDir() == null ) {
String installDir = data.getDefaultDir();
if ( data.isUserInstallation() ) {
// System.getenv only supported in Java 1.5, property set in shell script
// if (( System.getenv("HOME") != null ) && ( ! System.getenv("HOME").equals(""))) {
// rootDir = System.getenv("HOME");
// }
if (( System.getProperty("HOME") != null ) && ( ! System.getProperty("HOME").equals("") )) {
installDir = System.getProperty("user.home");
}
}
data.setInstallDir(installDir);
}
panel.setDirectory(data.getInstallDir());
}