Merge branch 'features/JAL-1541_BioJsMSA' into develop
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 20 May 2015 08:53:07 +0000 (09:53 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 20 May 2015 08:53:07 +0000 (09:53 +0100)
1  2 
src/jalview/gui/AlignFrame.java

@@@ -1342,8 -1342,9 +1342,9 @@@ public class AlignFrame extends GAlignF
    @Override
    public void bioJSMenuItem_actionPerformed(ActionEvent e)
    {
-     new BioJsHTMLOutput(alignPanel,
+     BioJsHTMLOutput bjs = new BioJsHTMLOutput(alignPanel,
              alignPanel.getSeqPanel().seqCanvas.getFeatureRenderer());
+     bjs.exportJalviewAlignmentAsBioJsHtmlFile();
    }
    public void createImageMap(File file, String image)
    {
      for (AlignmentAnnotation aa : alignPanel.getAlignment()
              .getAlignmentAnnotation())
      {
 +      /*
 +       * don't display non-positional annotations on an alignment
 +       */
 +      if (aa.annotations == null)
 +      {
 +        continue;
 +      }
        boolean apply = (aa.sequenceRef == null && forAlignment)
                || (aa.sequenceRef != null && forSequences);
        if (apply)