INTEGRATION: CWS native179 (1.8.20); FILE MERGED
2008/07/31 15:12:18 is 1.8.20.1: #i91489# improved solaris language preselection process
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* $RCSfile: ModuleCtrl.java,v $
|
||||
* $Revision: 1.8 $
|
||||
* $Revision: 1.9 $
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
@@ -715,6 +715,9 @@ public class ModuleCtrl {
|
||||
oneLang = oneLang.trim();
|
||||
if ( systemLanguages.contains(oneLang)) {
|
||||
foundLang = true;
|
||||
int count = installData.getPreselectedLanguages();
|
||||
count++;
|
||||
installData.setPreselectedLanguages(count);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -730,6 +733,18 @@ public class ModuleCtrl {
|
||||
}
|
||||
}
|
||||
|
||||
static public void setLanguagesPackages(PackageDescription packageData) {
|
||||
if (( packageData.getPkgLanguage() != null ) && ( ! packageData.getPkgLanguage().equals(""))) {
|
||||
// This is a package with a specific language.
|
||||
packageData.setSelectionState(PackageDescription.INSTALL);
|
||||
}
|
||||
|
||||
for (Enumeration e = packageData.children(); e.hasMoreElements(); ) {
|
||||
PackageDescription child = (PackageDescription) e.nextElement();
|
||||
setLanguagesPackages(child);
|
||||
}
|
||||
}
|
||||
|
||||
static public void defaultDatabaseAnalysis(InstallData data) {
|
||||
|
||||
PackageDescription packageData = SetupDataProvider.getPackageDescription();
|
||||
|
Reference in New Issue
Block a user