info.search_in_annotation_label = Search in {0} Label
info.search_in_annotation_description = Search in {0} Description
info.change_threshold_mode_to_enable = Change Threshold Mode to Enable
-label.null_or_unidentifiable_data = Null or unidentifiable data content pasted!
-label.unidentifiable_data = Unidentifiable Data
-label.null_or_invalid_alignment = Null or invalid alignment data!
-label.unable_to_create_alignment = Unable to create alignment
+label.couldnt_read_data = Couldn't read data
\ No newline at end of file
import jalview.datamodel.AlignmentI;
import jalview.datamodel.ColumnSelection;
import jalview.datamodel.SequenceI;
+import jalview.io.AppletFormatAdapter;
import jalview.io.FileParse;
import jalview.io.FormatAdapter;
import jalview.io.IdentifyFile;
if (format == null || format.equalsIgnoreCase("EMPTY DATA FILE"))
{
System.err.println(MessageManager
- .getString("label.null_or_unidentifiable_data"));
+ .getString("label.couldnt_read_data"));
if (!Jalview.isHeadlessMode())
{
- JOptionPane.showMessageDialog(null,
- MessageManager
- .getString("label.null_or_unidentifiable_data"),
- MessageManager.getString("label.unidentifiable_data"),
- JOptionPane.ERROR_MESSAGE);
+ javax.swing.JOptionPane.showInternalMessageDialog(Desktop.desktop,
+ AppletFormatAdapter.SUPPORTED_FORMATS,
+ MessageManager.getString("label.couldnt_read_data"),
+ JOptionPane.WARNING_MESSAGE);
}
return;
}
else
{
System.err.println(MessageManager
- .getString("label.null_or_invalid_alignment"));
+ .getString("label.couldnt_read_data"));
if (!Jalview.isHeadlessMode())
{
- JOptionPane
- .showMessageDialog(
- null,
- MessageManager
- .getString("label.null_or_invalid_alignment"),
- MessageManager
- .getString("label.unable_to_create_alignment"),
- JOptionPane.ERROR_MESSAGE);
+ javax.swing.JOptionPane.showInternalMessageDialog(Desktop.desktop,
+ AppletFormatAdapter.SUPPORTED_FORMATS,
+ MessageManager.getString("label.couldnt_read_data"),
+ JOptionPane.WARNING_MESSAGE);
}
}
}
+ "\" has null or unidentifiable data content!");
if (!Jalview.isHeadlessMode())
{
- JOptionPane.showMessageDialog(null, "The input file \"" + file
- + "\" has null or unidentifiable data content!",
- "Empty data file",
- JOptionPane.ERROR_MESSAGE);
+ javax.swing.JOptionPane.showInternalMessageDialog(
+ Desktop.desktop,
+ MessageManager.getString("label.couldnt_read_data")
+ + " in " + file + "\n"
+ + AppletFormatAdapter.SUPPORTED_FORMATS,
+ MessageManager.getString("label.couldnt_read_data"),
+ JOptionPane.WARNING_MESSAGE);
}
return;
}