OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 174 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 177
Line 72... Line 72...
72
import java.util.Comparator;
72
import java.util.Comparator;
73
import java.util.Date;
73
import java.util.Date;
74
import java.util.HashMap;
74
import java.util.HashMap;
75
import java.util.Iterator;
75
import java.util.Iterator;
76
import java.util.List;
76
import java.util.List;
77
import java.util.Locale;
-
 
78
import java.util.Map;
77
import java.util.Map;
79
import java.util.logging.Logger;
78
import java.util.logging.Logger;
80
 
79
 
81
import javax.swing.JOptionPane;
80
import javax.swing.JOptionPane;
82
import javax.swing.SwingUtilities;
81
import javax.swing.SwingUtilities;
Line 246... Line 245...
246
        return this.confFile;
245
        return this.confFile;
247
    }
246
    }
248
 
247
 
249
    public ComptaPropsConfiguration createConnexion() {
248
    public ComptaPropsConfiguration createConnexion() {
250
        final ComptaPropsConfiguration conf = ComptaPropsConfiguration.create();
249
        final ComptaPropsConfiguration conf = ComptaPropsConfiguration.create();
251
        TranslationManager.getInstance().addTranslationStreamFromClass(MainFrame.class);
250
        TranslationManager.addTranslationStreamFromClass(MainFrame.class);
252
        TranslationManager.getInstance().setLocale(Locale.getDefault());
251
        TranslationManager.createDefaultInstance();
253
 
252
 
254
        Configuration.setInstance(conf);
253
        Configuration.setInstance(conf);
255
        try {
254
        try {
256
            conf.getUserManager().setCurrentUserID(getUserID());
255
            conf.getUserManager().setCurrentUserID(getUserID());
257
            conf.setUpSocieteDataBaseConnexion(getCompanyID());
256
            conf.setUpSocieteDataBaseConnexion(getCompanyID());