OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 177
Line 110... Line 110...
110
            @Override
110
            @Override
111
            public void actionPerformed(ActionEvent e) {
111
            public void actionPerformed(ActionEvent e) {
112
                button.setEnabled(false);
112
                button.setEnabled(false);
113
                final Frame frame = SwingThreadUtils.getAncestorOrSelf(Frame.class, ImportEcriturePanel.this);
113
                final Frame frame = SwingThreadUtils.getAncestorOrSelf(Frame.class, ImportEcriturePanel.this);
114
                final FileDialog fd = new FileDialog(frame, "Import d'écritures", FileDialog.LOAD);
114
                final FileDialog fd = new FileDialog(frame, "Import d'écritures", FileDialog.LOAD);
115
                fd.setFilenameFilter(new FilenameFilter() {
-
 
116
                    @Override
-
 
117
                    public boolean accept(File dir, String name) {
-
 
118
                        return name.endsWith("." + ContentTypeVersioned.SPREADSHEET.getExtension());
-
 
119
                    }
-
 
120
                });
-
 
121
                fd.setVisible(true);
115
                fd.setVisible(true);
122
                rlPanel.setMode(ReloadPanel.MODE_ROTATE);
116
                rlPanel.setMode(ReloadPanel.MODE_ROTATE);
123
                if (fd.getFile() != null) {
117
                if (fd.getFile() != null) {
124
 
118
 
125
                    new Thread() {
119
                    new Thread() {