package jalview.ext.forester.io;
import jalview.ext.archaeopteryx.ArchaeopteryxInit;
+import jalview.gui.Desktop;
+import jalview.gui.JvOptionPane;
+import jalview.util.MessageManager;
import java.io.File;
import java.io.IOException;
final String possibleError = ForesterUtil.isReadableFile(treeFilePath);
if (possibleError != null)
{
- // something
+ JvOptionPane.showMessageDialog(Desktop.desktop, possibleError,
+ MessageManager.getString("label.problem_reading_tree_file"),
+ JvOptionPane.WARNING_MESSAGE);
+
}
filePath = treeFilePath;
file = new File(filePath);
final String possibleError = ForesterUtil.isReadableFile(treeFile);
if (possibleError != null)
{
- // something
+ JvOptionPane.showMessageDialog(Desktop.desktop, possibleError,
+ MessageManager.getString("label.problem_reading_tree_file"),
+ JvOptionPane.WARNING_MESSAGE);
+
}
file = treeFile;
filePath = file.getCanonicalPath();