- 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.statusBar.setText(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())
+ {
+ javax.swing.JOptionPane.showInternalMessageDialog(Desktop.desktop,
+ AppletFormatAdapter.SUPPORTED_FORMATS,
+ MessageManager.getString("label.couldnt_read_data"),
+ JOptionPane.WARNING_MESSAGE);
+ }
+ }