OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 132 Rev 156
Line 25... Line 25...
25
 
25
 
26
    public ModuleElement(AbstractModule module, String tableName) {
26
    public ModuleElement(AbstractModule module, String tableName) {
27
        // needs DEFERRED since createCode() uses module
27
        // needs DEFERRED since createCode() uses module
28
        super(tableName, DEFERRED_CODE);
28
        super(tableName, DEFERRED_CODE);
29
        this.module = module;
29
        this.module = module;
30
        // translations should be alongside the module
-
 
31
        this.setL18nLocation(module.getClass());
-
 
32
        // allow to access labels right away (see ModuleManager.registerSQLElements())
30
        // allow to access labels right away (see ModuleManager.registerSQLElements())
33
        for (final String id : this.getAdditionalIDsForMDPath()) {
31
        for (final String id : this.getAdditionalIDsForMDPath()) {
34
            this.addToMDPath(ModuleManager.getMDVariant(new ModuleReference(id, null)));
32
            this.addToMDPath(ModuleManager.getMDVariant(new ModuleReference(id, null)));
35
        }
33
        }
36
        this.addToMDPath(ModuleManager.getMDVariant(this.getFactory()));
34
        this.addToMDPath(ModuleManager.getMDVariant(this.getFactory()));