* @return
*/
protected static CdmStore getDefault(){
-/* if(instance == null){
+ if(instance == null){
+ // This is a workaround. Please relocate this initial setting to an adequate place.
+ PreferencesUtil.setHideDatasourceChooser(true);
+
// Prompt user for datasource if there are more than one
if(! PreferencesUtil.getPreferenceStore().getBoolean(PreferencesUtil.HIDE_DATASOURCE_CHOOSER)
&& CdmDataSourceRepository.getAll().size() > 1){
instance = initialize(DEFAULT_DB_SCHEMA_VALIDATION, DEFAULT_APPLICATION_CONTEXT);
}
- }*/
-
- if (instance == null) {
- instance = initialize(DEFAULT_DB_SCHEMA_VALIDATION, DEFAULT_APPLICATION_CONTEXT);
}
+
return instance;
}