in org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java [372:402]
private static void checkNonNullConf(IvyClasspathContainerConfiguration conf) {
ClasspathSetup classpathSetup = conf.getClasspathSetup();
ClasspathSetup prefStoreClasspathSetup = IvyPlugin.getPreferenceStoreHelper()
.getClasspathSetup();
MappingSetup mappingSetup = conf.getMappingSetup();
SettingsSetup settingsSetup = conf.getIvySettingsSetup();
MappingSetup prefStoreMappingSetup = IvyPlugin.getPreferenceStoreHelper().getMappingSetup();
if (settingsSetup.getRawIvyUserDir() == null) {
settingsSetup.setIvyUserDir(IvyPlugin.getPreferenceStoreHelper().getSettingsSetup()
.getRawIvyUserDir());
}
if (settingsSetup.getRawPropertyFiles() == null) {
settingsSetup.setPropertyFiles(IvyPlugin.getPreferenceStoreHelper().getSettingsSetup()
.getRawPropertyFiles());
}
if (classpathSetup.getAcceptedTypes() == null) {
classpathSetup.setAcceptedTypes(prefStoreClasspathSetup.getAcceptedTypes());
}
if (mappingSetup.getSourceTypes() == null) {
mappingSetup.setSourceTypes(prefStoreMappingSetup.getSourceTypes());
}
if (mappingSetup.getJavadocTypes() == null) {
mappingSetup.setJavadocTypes(prefStoreMappingSetup.getJavadocTypes());
}
if (mappingSetup.getSourceSuffixes() == null) {
mappingSetup.setSourceSuffixes(prefStoreMappingSetup.getSourceSuffixes());
}
if (mappingSetup.getJavadocSuffixes() == null) {
mappingSetup.setJavadocSuffixes(prefStoreMappingSetup.getJavadocSuffixes());
}
}