- JOptionPane.showInternalMessageDialog(Desktop.desktop,
- "Couldn't read the pasted text.\n"
- + "Formats currently supported are\n"
- +
- "Fasta, MSF, Clustal, BLC, PIR, MSP, and PFAM",
- "Error parsing text",
- JOptionPane.WARNING_MESSAGE);
+ {
+ af = new AlignFrame(al, AlignFrame.DEFAULT_WIDTH,
+ AlignFrame.DEFAULT_HEIGHT);
+ if (source instanceof FeaturesSourceI)
+ {
+ af.getViewport().setShowSequenceFeatures(true);
+ }
+ }
+ if (proxyColourScheme != null)
+ {
+ af.getViewport().applyFeaturesStyle(proxyColourScheme);
+ }
+ af.currentFileFormat = format;
+ Desktop.addInternalFrame(af, title, AlignFrame.DEFAULT_WIDTH,
+ AlignFrame.DEFAULT_HEIGHT);
+ af.setStatus(MessageManager
+ .getString("label.successfully_pasted_alignment_file"));
+
+ try
+ {
+ af.setMaximum(
+ jalview.bin.Cache.getDefault("SHOW_FULLSCREEN", false));
+ } catch (Exception ex)
+ {
+ }
+ }
+ }
+ else
+ {
+ System.err
+ .println(MessageManager.getString("label.couldnt_read_data"));
+ if (!Jalview.isHeadlessMode())
+ {
+ JvOptionPane.showInternalMessageDialog(Desktop.desktop,
+ AppletFormatAdapter.getSupportedFormats(),
+ MessageManager.getString("label.couldnt_read_data"),
+ JvOptionPane.WARNING_MESSAGE);
+ }
+ }