Skip to content

Commit

Permalink
Added ability to write out contaminations.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-lunt committed Jun 2, 2014
1 parent 6d781a8 commit eb27f80
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void actionPerformed(ActionEvent arg0) {

myApp.exposure_output_file = ((FileSelectorPanel)subject.getNamed("output_file")).getSelectedFile();

myApp.contamination_output_file = ((FileSelectorPanel)subject.getNamed("contamination_output_file")).getSelectedFile();

File timeline_file = ((FileSelectorPanel)subject.getNamed("timeline_file")).getSelectedFile();
if(timeline_file != null){
Expand Down Expand Up @@ -105,6 +106,8 @@ public void actionPerformed(ActionEvent arg0) {

myApp.exposure_output_file = ((FileSelectorPanel)subject.getNamed("output_file")).getSelectedFile();

myApp.contamination_output_file = ((FileSelectorPanel)subject.getNamed("contamination_output_file")).getSelectedFile();


File timeline_file = ((FileSelectorPanel)subject.getNamed("timeline_file")).getSelectedFile();
if(timeline_file != null){
Expand Down Expand Up @@ -189,6 +192,11 @@ private void createAdvancedPanel(){
output_file_panel.setMode(FileSelectorPanel.SAVE_FILE);
advancedPanel.addNamed("output_file", output_file_panel);

FileSelectorPanel output_contamination_panel = new FileSelectorPanel("Contaminations Output File (will include inputed contaminations.)");
output_contamination_panel.setMode(FileSelectorPanel.SAVE_FILE);
advancedPanel.addNamed("contamination_output_file",output_contamination_panel);


advancedPanel.add(new JSeparator(JSeparator.HORIZONTAL));
advancedPanel.add(new JLabel("Inputs:"));

Expand All @@ -215,11 +223,17 @@ private void createAdvancedPanel(){
private void createBasicPanel(){
basicPanel = new NamedComponentPanel();
basicPanel.setLayout(new BoxLayout(basicPanel, BoxLayout.Y_AXIS));

basicPanel.add(new JLabel("Outputs:"));
FileSelectorPanel output_file_panel = new FileSelectorPanel("Exposures Output File");
output_file_panel.setMode(FileSelectorPanel.SAVE_FILE);
basicPanel.addNamed("output_file", output_file_panel);

FileSelectorPanel output_contamination_panel = new FileSelectorPanel("Contaminations Output File (will include inputed contaminations.)");
output_contamination_panel.setMode(FileSelectorPanel.SAVE_FILE);
basicPanel.addNamed("contamination_output_file",output_contamination_panel);


basicPanel.add(new JSeparator(JSeparator.HORIZONTAL));
basicPanel.add(new JLabel("Inputs:"));

Expand Down

0 comments on commit eb27f80

Please sign in to comment.