Skip to content
Snippets Groups Projects
Commit b0d46882 authored by tcarver's avatar tcarver
Browse files

set the default flatten gene model option to true only if writing to

embl or genbank
parent 9f7836c2
No related branches found
No related tags found
No related merge requests found
...@@ -381,7 +381,7 @@ public class EntryFileDialog extends StickyFileChooser ...@@ -381,7 +381,7 @@ public class EntryFileDialog extends StickyFileChooser
} }
final JCheckBox flattenGeneModel = new JCheckBox("Flatten Gene Model", final JCheckBox flattenGeneModel = new JCheckBox("Flatten Gene Model",
true); false);
final JCheckBox ignoreObsoleteFeatures = new JCheckBox( final JCheckBox ignoreObsoleteFeatures = new JCheckBox(
"Ignore obsolete features", true); "Ignore obsolete features", true);
if(((DocumentEntry)entry.getEMBLEntry()).getDocument() if(((DocumentEntry)entry.getEMBLEntry()).getDocument()
...@@ -406,9 +406,11 @@ public class EntryFileDialog extends StickyFileChooser ...@@ -406,9 +406,11 @@ public class EntryFileDialog extends StickyFileChooser
{ {
case DocumentEntryFactory.EMBL_FORMAT: case DocumentEntryFactory.EMBL_FORMAT:
super.setSelectedFile(new File(".embl")); super.setSelectedFile(new File(".embl"));
flattenGeneModel.setSelected(true);
break; break;
case DocumentEntryFactory.GENBANK_FORMAT: case DocumentEntryFactory.GENBANK_FORMAT:
super.setSelectedFile(new File(".gbk")); super.setSelectedFile(new File(".gbk"));
flattenGeneModel.setSelected(true);
break; break;
case DocumentEntryFactory.GFF_FORMAT: case DocumentEntryFactory.GFF_FORMAT:
super.setSelectedFile(new File(".gff")); super.setSelectedFile(new File(".gff"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment