OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 177 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 13... Line 13...
13
 
13
 
14
 package org.openconcerto.erp.action;
14
 package org.openconcerto.erp.action;
15
 
15
 
16
import org.openconcerto.erp.config.Benchmark;
16
import org.openconcerto.erp.config.Benchmark;
17
import org.openconcerto.erp.config.ComptaPropsConfiguration;
17
import org.openconcerto.erp.config.ComptaPropsConfiguration;
18
import org.openconcerto.erp.config.Gestion;
-
 
19
import org.openconcerto.sql.ui.InfoPanel;
18
import org.openconcerto.sql.ui.InfoPanel;
20
import org.openconcerto.ui.DefaultGridBagConstraints;
19
import org.openconcerto.ui.DefaultGridBagConstraints;
21
import org.openconcerto.ui.JLabelBold;
20
import org.openconcerto.ui.JLabelBold;
22
import org.openconcerto.ui.ReloadPanel;
21
import org.openconcerto.ui.ReloadPanel;
23
 
22
 
Line 28... Line 27...
28
import java.awt.GridBagConstraints;
27
import java.awt.GridBagConstraints;
29
import java.awt.GridBagLayout;
28
import java.awt.GridBagLayout;
30
import java.awt.event.ActionEvent;
29
import java.awt.event.ActionEvent;
31
import java.awt.event.ActionListener;
30
import java.awt.event.ActionListener;
32
import java.io.File;
31
import java.io.File;
33
import java.io.IOException;
-
 
34
 
32
 
35
import javax.swing.AbstractAction;
33
import javax.swing.AbstractAction;
36
import javax.swing.Action;
34
import javax.swing.Action;
37
import javax.swing.JButton;
35
import javax.swing.JButton;
38
import javax.swing.JFrame;
36
import javax.swing.JFrame;
Line 113... Line 111...
113
            c.weightx = 1;
111
            c.weightx = 1;
114
            c.anchor = GridBagConstraints.WEST;
112
            c.anchor = GridBagConstraints.WEST;
115
            p.add(new JLabel(dbPath), c);
113
            p.add(new JLabel(dbPath), c);
116
        }
114
        }
117
        c.gridy++;
115
        c.gridy++;
118
        try {
-
 
119
            c.gridx = 0;
116
        c.gridx = 0;
120
            c.weightx = 0;
117
        c.weightx = 0;
121
            c.anchor = GridBagConstraints.EAST;
118
        c.anchor = GridBagConstraints.EAST;
122
            p.add(new JLabelBold("Dossier des modules : "), c);
119
        p.add(new JLabelBold("Dossiers des modules : "), c);
123
            c.gridx++;
120
        c.gridx++;
124
            c.weightx = 1;
121
        c.weightx = 1;
125
            c.anchor = GridBagConstraints.WEST;
122
        c.anchor = GridBagConstraints.WEST;
126
            p.add(new JLabel(Gestion.MODULES_DIR.getCanonicalPath()), c);
123
        p.add(new JLabel(this.conf.getModuleManager().getFolders().toString()), c);
127
        } catch (IOException e) {
-
 
128
            e.printStackTrace();
-
 
129
        }
-
 
130
 
124
 
131
        return p;
125
        return p;
132
    }
126
    }
133
 
127
 
134
    private JPanel createBenchMarkPanel() {
128
    private JPanel createBenchMarkPanel() {