Skip to content

Commit

Permalink
add log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pgdurand committed Feb 2, 2021
1 parent eea0bec commit 8a5ec34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bzh/plealog/blastviewer/actions/main/OpenFileAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ private void doAction() {
}
}
}

EZLogger.info(String.format(
BVMessages.getString("OpenFileAction.msg4"), fs.length));

if (sroMaster!=null) {
if(notLoadedFiles!=0) {
EZEnvironment.displayInfoMessage(EZEnvironment.getParentFrame(),
Expand All @@ -110,6 +114,7 @@ private void doAction() {
JComponent viewer = BlastViewerOpener.prepareViewer(sroMaster);

BlastViewerOpener.displayInternalFrame(viewer, fs[0].getName(), null);
EZLogger.info(BVMessages.getString("OpenFileAction.msg5"));
}
else {
EZEnvironment.displayInfoMessage(EZEnvironment.getParentFrame(),
Expand Down
2 changes: 2 additions & 0 deletions src/bzh/plealog/blastviewer/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ OpenFileAction.err=Unable to load BLAST file:
OpenFileAction.msg1=Loading file...
OpenFileAction.msg2=Some files could not be loaded. Please review log messages.
OpenFileAction.msg3=Unable to load provided file(s). Nothing to display.
OpenFileAction.msg4=Done loading %d file(s).
OpenFileAction.msg5=Done creating viewer.

SaveFileAction.lbl=Save BLAST results
SaveFileAction.err=Unable to save BLAST results:
Expand Down

0 comments on commit 8a5ec34

Please sign in to comment.