OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 18 Rev 61
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.preferences;
14
 package org.openconcerto.erp.preferences;
15
 
15
 
16
import org.openconcerto.erp.utils.FileUtility;
-
 
17
import org.openconcerto.ui.DefaultGridBagConstraints;
16
import org.openconcerto.ui.DefaultGridBagConstraints;
18
import org.openconcerto.ui.preferences.DefaultPreferencePanel;
17
import org.openconcerto.ui.preferences.DefaultPreferencePanel;
-
 
18
import org.openconcerto.utils.FileUtils;
19
 
19
 
20
import java.awt.Color;
20
import java.awt.Color;
21
import java.awt.GridBagConstraints;
21
import java.awt.GridBagConstraints;
22
import java.awt.GridBagLayout;
22
import java.awt.GridBagLayout;
23
import java.awt.event.ActionEvent;
23
import java.awt.event.ActionEvent;
Line 132... Line 132...
132
        File f2033BPDF = new File(this.text2033BPDF.getText());
132
        File f2033BPDF = new File(this.text2033BPDF.getText());
133
        File f2033CPDF = new File(this.text2033CPDF.getText());
133
        File f2033CPDF = new File(this.text2033CPDF.getText());
134
        File z = new File(".");
134
        File z = new File(".");
135
 
135
 
136
        try {
136
        try {
137
            TemplateNXProps.getInstance().setProperty("Location2033APDF", FileUtility.getPrimaryPath(z.getCanonicalFile(), f2033APDF));
137
            TemplateNXProps.getInstance().setProperty("Location2033APDF", FileUtils.relative(z, f2033APDF));
138
            TemplateNXProps.getInstance().setProperty("Location2033BPDF", FileUtility.getPrimaryPath(z.getCanonicalFile(), f2033BPDF));
138
            TemplateNXProps.getInstance().setProperty("Location2033BPDF", FileUtils.relative(z, f2033BPDF));
139
            TemplateNXProps.getInstance().setProperty("Location2033CPDF", FileUtility.getPrimaryPath(z.getCanonicalFile(), f2033CPDF));
139
            TemplateNXProps.getInstance().setProperty("Location2033CPDF", FileUtils.relative(z, f2033CPDF));
140
        } catch (IOException e) {
140
        } catch (IOException e) {
141
            e.printStackTrace();
141
            e.printStackTrace();
142
        }
142
        }
143
        TemplateNXProps.getInstance().store();
143
        TemplateNXProps.getInstance().store();
144
    }
144
    }