OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 153 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 153 Rev 172
Line 12... Line 12...
12
import org.openconcerto.erp.modules.DBContext;
12
import org.openconcerto.erp.modules.DBContext;
13
import org.openconcerto.erp.modules.ModuleFactory;
13
import org.openconcerto.erp.modules.ModuleFactory;
14
import org.openconcerto.erp.modules.ModulePreferencePanelDesc;
14
import org.openconcerto.erp.modules.ModulePreferencePanelDesc;
15
import org.openconcerto.erp.storage.StorageEngines;
15
import org.openconcerto.erp.storage.StorageEngines;
16
import org.openconcerto.sql.element.SQLElementDirectory;
16
import org.openconcerto.sql.element.SQLElementDirectory;
-
 
17
import org.openconcerto.sql.model.DBRoot;
17
import org.openconcerto.ui.preferences.PreferencePanel;
18
import org.openconcerto.ui.preferences.PreferencePanel;
18
19
19
public final class Module extends AbstractModule {
20
public final class Module extends AbstractModule {
20
    private final GoogleDocsStorageEngine engine = new GoogleDocsStorageEngine();
21
    private final GoogleDocsStorageEngine engine = new GoogleDocsStorageEngine();
21
22
Line 46... Line 47...
46
    protected void start() {
47
    protected void start() {
47
        StorageEngines.getInstance().addEngine(engine);
48
        StorageEngines.getInstance().addEngine(engine);
48
    }
49
    }
49
50
50
    @Override
51
    @Override
51
    public List<ModulePreferencePanelDesc> getPrefDescriptors() {
52
    public List<ModulePreferencePanelDesc> getPrefDescriptors(final DBRoot root) {
52
        return Arrays.<ModulePreferencePanelDesc> asList(new ModulePreferencePanelDesc("Google Docs") {
53
        return Arrays.<ModulePreferencePanelDesc> asList(new ModulePreferencePanelDesc("Google Docs") {
53
            @Override
54
            @Override
54
            protected PreferencePanel createPanel() {
55
            protected PreferencePanel createPanel() {
55
                return new GoogleDocsPreferencePanel();
56
                return new GoogleDocsPreferencePanel();
56
            }
57
            }