Skip to content

Commit

Permalink
console output uniformed
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo Galimberti authored and Edoardo Galimberti committed Aug 16, 2017
1 parent 2ca5623 commit 1aa5b95
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 39 deletions.
Expand Up @@ -11,8 +11,6 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultListModel;

public class DatasetController {
Expand Down Expand Up @@ -60,8 +58,8 @@ public void importDataset(String name, String path, String type) throws FileNotF
// add it to the list
datasetsListModel.addElement(dataset);
}
} catch (IOException ex) {
Logger.getLogger(DatasetController.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}

Expand Down
Expand Up @@ -8,8 +8,6 @@
import java.awt.Color;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JFileChooser;
Expand Down Expand Up @@ -469,8 +467,8 @@ private void filePathTextField1MouseClicked(java.awt.event.MouseEvent evt) {//GE
try {
// update the text field
filePathTextField1.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_filePathTextField1MouseClicked
Expand All @@ -485,8 +483,8 @@ private void mappingTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-
try {
// update the text field
mappingTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_mappingTextFieldMouseClicked
Expand All @@ -502,8 +500,8 @@ private void filePathTextField2MouseClicked(java.awt.event.MouseEvent evt) {//GE
try {
// update the text field
filePathTextField2.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_filePathTextField2MouseClicked
Expand All @@ -518,8 +516,8 @@ private void fileTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR
try {
// update the text field
fileTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_fileTextFieldMouseClicked
Expand Down
Expand Up @@ -6,8 +6,6 @@
import java.awt.Color;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
Expand Down Expand Up @@ -214,8 +212,8 @@ private void pathTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR
try {
// update the text field
pathTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_pathTextFieldMouseClicked
Expand Down
Expand Up @@ -5,8 +5,6 @@

import java.awt.Color;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
Expand Down Expand Up @@ -138,8 +136,8 @@ private void pathTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR
try {
// update the text field
pathTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(SaveDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_pathTextFieldMouseClicked
Expand Down
Expand Up @@ -10,8 +10,6 @@
import java.awt.Color;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;

Expand Down Expand Up @@ -447,8 +445,8 @@ private void annotateStageTextFieldMouseClicked(java.awt.event.MouseEvent evt) {
try {
// update the text field
annotateStageTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_annotateStageTextFieldMouseClicked
Expand All @@ -463,8 +461,8 @@ private void samplesGroupTextFieldMouseClicked(java.awt.event.MouseEvent evt) {/
try {
// update the text field
samplesGroupTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_samplesGroupTextFieldMouseClicked
Expand Down Expand Up @@ -577,7 +575,7 @@ private void showPlotButtonActionPerformed(java.awt.event.ActionEvent evt) {//GE
JOptionPane.showConfirmDialog(this, RConnectionManager.getTextConsole().getLastConsoleMessage(), RConnectionManager.ERROR, JOptionPane.PLAIN_MESSAGE);
}
} catch (IOException e) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, e);
e.printStackTrace();
}
}//GEN-LAST:event_showPlotButtonActionPerformed

Expand Down
18 changes: 8 additions & 10 deletions src/main/java/it/unimib/disco/bimib/cyTRON/view/WizardFrame.java
Expand Up @@ -3,8 +3,6 @@
import it.unimib.disco.bimib.cyTRON.controller.WizardController;
import it.unimib.disco.bimib.cyTRON.cytoscape.CommandExecutor;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;

Expand Down Expand Up @@ -534,8 +532,8 @@ private void jriFromTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-
try {
// update the text field
jriFromTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_jriFromTextFieldMouseClicked
Expand All @@ -557,8 +555,8 @@ private void jriToTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FI
try {
// update the text field
jriToTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_jriToTextFieldMouseClicked
Expand All @@ -580,8 +578,8 @@ private void rLibraryFromTextFieldMouseClicked(java.awt.event.MouseEvent evt) {/
try {
// update the text field
rLibraryFromTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_rLibraryFromTextFieldMouseClicked
Expand All @@ -603,8 +601,8 @@ private void rLibraryToTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//G
try {
// update the text field
rLibraryToTextField.setText(fileChooser.getSelectedFile().getCanonicalPath());
} catch (IOException ex) {
Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException e) {
e.printStackTrace();
}
}
}//GEN-LAST:event_rLibraryToTextFieldMouseClicked
Expand Down

0 comments on commit 1aa5b95

Please sign in to comment.