OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 26 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26 Rev 65
Line 70... Line 70...
70
        public void init(final JavaPrefPreferencePanel prefPanel) {
70
        public void init(final JavaPrefPreferencePanel prefPanel) {
71
            final JComponent comp = this.getVW().getComp();
71
            final JComponent comp = this.getVW().getComp();
72
            if (comp instanceof SQLTextCombo) {
72
            if (comp instanceof SQLTextCombo) {
73
                ((SQLTextCombo) comp).initCache(createCache(prefPanel));
73
                ((SQLTextCombo) comp).initCache(createCache(prefPanel));
74
            } else if (comp instanceof SQLSearchableTextCombo) {
74
            } else if (comp instanceof SQLSearchableTextCombo) {
75
                ((SQLSearchableTextCombo) comp).initCacheLater(new ISQLListModel(createCache(prefPanel)));
75
                ((SQLSearchableTextCombo) comp).initCache(new ISQLListModel(createCache(prefPanel)).load());
76
            }
76
            }
77
        }
77
        }
78
 
78
 
79
        private ITextComboCacheSQL createCache(final JavaPrefPreferencePanel prefPanel) {
79
        private ITextComboCacheSQL createCache(final JavaPrefPreferencePanel prefPanel) {
80
            return new ITextComboCacheSQL(getRoot(), prefPanel.getPrefPath() + '/' + this.getPrefKey());
80
            return new ITextComboCacheSQL(getRoot(), prefPanel.getPrefPath() + '/' + this.getPrefKey());