From 18ab877a5f32de9dbf0a999f8b4623706f4ad2db Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 18 Jan 2015 15:44:04 +0000 Subject: [PATCH] JAL-1628 formatting --- src/jalview/appletgui/CutAndPasteTransfer.java | 29 +++++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/jalview/appletgui/CutAndPasteTransfer.java b/src/jalview/appletgui/CutAndPasteTransfer.java index ce2a3ac..0a9ca56 100644 --- a/src/jalview/appletgui/CutAndPasteTransfer.java +++ b/src/jalview/appletgui/CutAndPasteTransfer.java @@ -20,14 +20,28 @@ */ package jalview.appletgui; -import java.awt.*; -import java.awt.event.*; - -import jalview.datamodel.*; -import jalview.io.*; +import jalview.datamodel.Alignment; +import jalview.datamodel.PDBEntry; +import jalview.datamodel.Sequence; +import jalview.io.AnnotationFile; +import jalview.io.AppletFormatAdapter; +import jalview.io.IdentifyFile; +import jalview.io.TCoffeeScoreFile; import jalview.schemes.TCoffeeColourScheme; import jalview.util.MessageManager; +import java.awt.BorderLayout; +import java.awt.Button; +import java.awt.Dialog; +import java.awt.Font; +import java.awt.Frame; +import java.awt.Panel; +import java.awt.TextArea; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; + public class CutAndPasteTransfer extends Panel implements ActionListener, MouseListener { @@ -132,12 +146,15 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, pdb.setFile(text); if (alignFrame.alignPanel.av.applet.jmolAvailable) + { new jalview.appletgui.AppletJmol(pdb, new Sequence[] { seq }, null, alignFrame.alignPanel, AppletFormatAdapter.PASTE); + } else - + { new MCview.AppletPDBViewer(pdb, new Sequence[] { seq }, null, alignFrame.alignPanel, AppletFormatAdapter.PASTE); + } } else if (treeImport) -- 1.7.10.2