Skip to content

Commit

Permalink
an Error message for redstart, if 'text' directory not found in user …
Browse files Browse the repository at this point in the history
…specified location

git-svn-id: https://mary.opendfki.de/repos/trunk@1006 953a6561-930b-0410-b2a6-db37d1b2ae63
  • Loading branch information
Sathish Chandra Pammi committed Dec 7, 2007
1 parent fc09ea6 commit aa8afc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions java/de/dfki/lt/mary/recsessionmgr/Redstart.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

import de.dfki.lt.mary.recsessionmgr.debug.Test;
import de.dfki.lt.mary.recsessionmgr.gui.AdminWindow;
Expand Down Expand Up @@ -84,6 +85,20 @@ && new File(dir+"/text").isDirectory()) {
System.exit(0);
}

File textDir = new File(System.getProperty("user.dir")+System.getProperty("file.separator")+"text");
//System.out.println(System.getProperty("user.dir")+System.getProperty("file.separator")+"wav");
if(!textDir.exists()){
int choose = JOptionPane.showOptionDialog(null,
"Before beginning a new recording session, make sure that all text files (transcriptions) are available in 'text' directory of your specified location.",
"Could not find transcriptions",
JOptionPane.OK_OPTION,
JOptionPane.ERROR_MESSAGE,
null,
new String[] {"OK"},
null);
System.err.println("Could not find 'text' directory in user specified location -- exiting.");
System.exit(0);
}

// Display splash screen

Expand Down

0 comments on commit aa8afc7

Please sign in to comment.