- File f = new File(folder);
- if (!f.exists())
- {
- if (showDialog)
- {
- JvOptionPane.showInternalMessageDialog(Desktop.desktop,
- MessageManager.getString("label.folder_not_exists"),
- MessageManager.getString("label.invalid_folder"),
- JvOptionPane.ERROR_MESSAGE);
- }
- return false;
- }
- AlignmentI alignment = new Alignment(
- new SequenceI[]
- { new Sequence("test", "WLWL", 0, 3) });
- if (canExecute(folder + "/hmmbuild"))
- {
- validateHMMBuild(alignment);
- }
- else
- {
- message += MessageManager.getString("label.hmmbuild_not_found")
- + "\n";
- missing++;
- }
-
-
- if (canExecute(folder + "/hmmalign"))
- {
-
- }
- else
- {
- message += MessageManager.getString("label.hmmalign_not_found")
- + "\n";
- missing++;
- }
-
-
- if (canExecute(folder + "/hmmsearch"))
- {
-
- }
- else
- {
- message += MessageManager.getString("label.hmmsearch_not_found")
- + "\n";
- missing++;
- }
- }
-
- if (missing > 0)
- {
- if (missing < 3)
- {
- if (showDialog)
- {
- JvOptionPane.showInternalMessageDialog(Desktop.desktop, message,
- MessageManager.getString("label.invalid_folder"),
- JvOptionPane.ERROR_MESSAGE);
- }
- return false;
- }
- else
- {
- if (showDialog)
- {
- JvOptionPane.showInternalMessageDialog(Desktop.desktop,
- MessageManager.getString("label.no_binaries"),
- MessageManager.getString("label.invalid_folder"),
- JvOptionPane.ERROR_MESSAGE);
- }
-
- return false;
- }
- }
-
- return true;
+ JvOptionPane.showInternalMessageDialog(Desktop.desktop,
+ MessageManager.formatMessage("label.executable_not_found",
+ executable),
+ MessageManager.getString("label.invalid_folder"),
+ JvOptionPane.ERROR_MESSAGE);
+ }
+ return false;