From c14638a552d16428402dbc5056fb44826b7a7f77 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 8 Mar 2006 16:49:09 +0000 Subject: [PATCH] PASTE is constant in AppletFormatAdapter --- src/jalview/appletgui/CutAndPasteTransfer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 1.7.10.2