JAL-1473 tree calcs performed with ScoreModelI instances
authorJim Procter <jprocter@dundee.ac.uk>
Tue, 15 Apr 2014 17:11:07 +0000 (18:11 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 21 Apr 2014 13:09:17 +0000 (14:09 +0100)
src/jalview/gui/AlignFrame.java

index 5160a3a..fd6fe24 100644 (file)
@@ -27,6 +27,7 @@ import jalview.analysis.ParseProperties;
 import jalview.analysis.SequenceIdMatcher;
 import jalview.api.AlignViewControllerGuiI;
 import jalview.api.AlignViewControllerI;
+import jalview.api.analysis.ScoreModelI;
 import jalview.bin.Cache;
 import jalview.commands.CommandI;
 import jalview.commands.EditCommand;
@@ -3897,7 +3898,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       for (final Object pwtype: ResidueProperties.scoreMatrices.keySet())
       {
         JMenuItem tm = new JMenuItem();
-        ScoreMatrix sm = (ScoreMatrix) ResidueProperties.scoreMatrices.get(pwtype);
+        ScoreModelI sm = ResidueProperties.scoreMatrices.get(pwtype);
         final String title="Calculate "+type+" using "+sm.getName();
         tm.setText(title);// MessageManager.getString("label.neighbour_blosum62"));
         tm