OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 86 Rev 181
Line 15... Line 15...
15
        this.extension = extension;
15
        this.extension = extension;
16
        addContent();
16
        addContent();
17
    }
17
    }
18
 
18
 
19
    private void addContent() {
19
    private void addContent() {
20
        this.addAll(extension.getCreateListList());
20
        this.addAll(this.extension.getCreateListList());
21
    }
21
    }
22
 
22
 
23
    @Override
23
    @Override
24
    public void stateChanged(ChangeEvent e) {
24
    public void stateChanged(ChangeEvent e) {
25
        this.clear();
25
        this.clear();
26
        addContent();
26
        addContent();
27
    }
27
    }
28
 
28
 
29
    public void addNewList() {
29
    public void addNewList() {
30
        final ListDescriptor l = new ListDescriptor("liste " + (this.getSize() + 1));
30
        final ListDescriptor l = new ListDescriptor("liste " + (this.getSize() + 1));
31
        final List<String> allKnownTableNames = extension.getAllKnownTableNames();
31
        final List<String> allKnownTableNames = this.extension.getAllKnownTableNames();
32
        final String mainTable = allKnownTableNames.get(0);
32
        final String mainTable = allKnownTableNames.get(0);
33
        l.setMainTable(mainTable);
33
        l.setMainTable(mainTable);
34
        this.addElement(l);
34
        this.addElement(l);
35
        extension.addCreateList(l);
35
        this.extension.addCreateList(l);
36
    }
36
    }
37
 
37
 
38
}
38
}