JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"),\r
new String[]{"fa, fasta, fastq", "aln", "pfam", "msf", "pir","blc","jar"},\r
new String[]{"Fasta", "Clustal", "PFAM", "MSF", "PIR", "BLC", "Jalview"}\r
- ,null);\r
+ ,jalview.bin.Cache.getProperty("DEFAULT_FILE_FORMAT"));\r
\r
chooser.setFileView(new JalviewFileView());\r
chooser.setDialogTitle("Open local file");\r
int value = chooser.showOpenDialog(this);\r
if(value == JalviewFileChooser.APPROVE_OPTION)\r
{\r
+ jalview.bin.Cache.setProperty("DEFAULT_FILE_FORMAT", chooser.getSelectedFormat());\r
String choice = chooser.getSelectedFile().getPath();\r
jalview.bin.Cache.setProperty("LAST_DIRECTORY", chooser.getSelectedFile().getParent());\r
if(chooser.getSelectedFormat().equals("Jalview"))\r
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"),\r
new String[]{"fa, fasta, fastq", "aln", "pfam", "msf", "pir","blc","jar"},\r
new String[]{"Fasta", "Clustal", "PFAM", "MSF", "PIR", "BLC", "Jalview"}\r
- ,null);\r
+ ,jalview.bin.Cache.getProperty("DEFAULT_FILE_FORMAT"));\r
chooser.setFileView(new JalviewFileView());\r
chooser.setDialogTitle("Select startup file");\r
int value = chooser.showOpenDialog(this);\r
if(value == JalviewFileChooser.APPROVE_OPTION)\r
{\r
+ jalview.bin.Cache.setProperty("DEFAULT_FILE_FORMAT", chooser.getSelectedFormat());\r
startupFileTextfield.setText( chooser.getSelectedFile().getAbsolutePath() );\r
}\r
}\r