From: amwaterhouse Date: Wed, 8 Mar 2006 16:49:09 +0000 (+0000) Subject: PASTE is constant in AppletFormatAdapter X-Git-Tag: Root_VamJalview_2_07b+~84 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c14638a552d16428402dbc5056fb44826b7a7f77;p=jalview.git PASTE is constant in AppletFormatAdapter --- diff --git a/src/jalview/appletgui/CutAndPasteTransfer.java b/src/jalview/appletgui/CutAndPasteTransfer.java index 51d8d7f..173b031 100755 --- a/src/jalview/appletgui/CutAndPasteTransfer.java +++ b/src/jalview/appletgui/CutAndPasteTransfer.java @@ -96,15 +96,15 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, MouseL if(pdbImport) { - new MCview.AppletPDBViewer(text, "Paste", seq, seqcanvas); + new MCview.AppletPDBViewer(text, AppletFormatAdapter.PASTE, seq, seqcanvas); } else { SequenceI[] sequences = null; - String format = IdentifyFile.Identify(text, "Paste"); + String format = new IdentifyFile().Identify(text, AppletFormatAdapter.PASTE); try{ - sequences = new AppletFormatAdapter().readFile(text, "Paste", format); + sequences = new AppletFormatAdapter().readFile(text, AppletFormatAdapter.PASTE, format); }catch(java.io.IOException ex) { ex.printStackTrace();