X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FAppletPDBCanvas.java;h=714c33f08e8cfd30095a807f229e5e9dd331d020;hb=3e6daa2f37a6c2380cef64b34488a2978b808891;hp=c82c331cacc3f76a62ed12e227d2191403216b05;hpb=f8456d4c0b253ae32a4b569e12bb8bf7f7096d65;p=jalview.git diff --git a/src/MCview/AppletPDBCanvas.java b/src/MCview/AppletPDBCanvas.java old mode 100755 new mode 100644 index c82c331..714c33f --- a/src/MCview/AppletPDBCanvas.java +++ b/src/MCview/AppletPDBCanvas.java @@ -1,13 +1,13 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) + * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - * + * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -132,7 +132,8 @@ public class AppletPDBCanvas extends Panel implements MouseListener, this.pdbentry = pdbentry; this.sequence = seq; - ssm = StructureSelectionManager.getStructureSelectionManager(); + ssm = StructureSelectionManager + .getStructureSelectionManager(ap.av.applet); try { @@ -177,8 +178,10 @@ public class AppletPDBCanvas extends Panel implements MouseListener, // the start and end points. // Align the sequence to the pdb // TODO: DNa/Pep switch - AlignSeq as = new AlignSeq(sequence, ((PDBChain) pdb.chains - .elementAt(i)).sequence, ((PDBChain) pdb.chains.elementAt(i)).isNa ? AlignSeq.DNA : AlignSeq.PEP); + AlignSeq as = new AlignSeq(sequence, + ((PDBChain) pdb.chains.elementAt(i)).sequence, + ((PDBChain) pdb.chains.elementAt(i)).isNa ? AlignSeq.DNA + : AlignSeq.PEP); as.calcScoreMatrix(); as.traceAlignment(); PrintStream ps = new PrintStream(System.out) @@ -1102,7 +1105,8 @@ public class AppletPDBCanvas extends Panel implements MouseListener, // /StructureListener public String[] getPdbFile() { - return new String[] { pdbentry.getFile() }; + return new String[] + { pdbentry.getFile() }; } String lastMessage; @@ -1189,4 +1193,11 @@ public class AppletPDBCanvas extends Panel implements MouseListener, repaint(); } + @Override + public void releaseReferences(Object svl) + { + // TODO Auto-generated method stub + + } + }