JAL-1628 employ new AnnotationFile reader method to allow the current view's ColumnSe...
[jalview.git] / src / jalview / bin / JalviewLite.java
index 833dd7e..dab649e 100644 (file)
@@ -709,8 +709,8 @@ public class JalviewLite extends Applet implements
    */
   public void loadAnnotationFrom(AlignFrame alf, String annotation)
   {
-    if (new AnnotationFile().readAnnotationFile(alf.getAlignViewport()
-            .getAlignment(), annotation, AppletFormatAdapter.PASTE))
+    if (new AnnotationFile().annotateAlignmentView(alf.getAlignViewport(),
+            annotation, AppletFormatAdapter.PASTE))
     {
       alf.alignPanel.fontChanged();
       alf.alignPanel.setScrollValues(0, 0);
@@ -1999,8 +1999,8 @@ public class JalviewLite extends Applet implements
         {
           param = setProtocolState(param);
 
-          if (new AnnotationFile().readAnnotationFile(
-                  newAlignFrame.viewport.getAlignment(), param, protocol))
+          if (new AnnotationFile().annotateAlignmentView(
+                  newAlignFrame.viewport, param, protocol))
           {
             newAlignFrame.alignPanel.fontChanged();
             newAlignFrame.alignPanel.setScrollValues(0, 0);