~yrke/tapaal/removeNetType

« back to all changes in this revision

Viewing changes to src/pipe/gui/widgets/filebrowser/NativeFileBrowser.java

MergedĀ lp:~yrke/tapaal/testbranch-syntaxOnlyChanges

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import pipe.gui.CreateGui;
13
13
 
14
14
class NativeFileBrowser extends FileBrowser {
15
 
        private FileDialog fc;
16
 
        private String ext;
17
 
        private String optionalExt;
 
15
        private final FileDialog fc;
 
16
        private final String ext;
 
17
        private final String optionalExt;
18
18
        private String specifiedPath;
19
19
        NativeFileBrowser(String filetype, final String ext, String path) {
20
20
                this(filetype, ext, "", path);
82
82
            fc.setMode(FileDialog.LOAD);
83
83
            fc.setVisible(true);
84
84
            File[] selectedFiles = fc.getFiles();
85
 
            String selectedDir = fc.getDirectory();
86
 
            lastOpenPath = selectedDir;
 
85
        lastOpenPath = fc.getDirectory();
87
86
            return selectedFiles;
88
87
        }
89
88