Merge branch 'features/JAL-1767pcaInProject' into bug/JAL-3171_maintain_datasets_acro...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 19 Dec 2018 16:53:33 +0000 (16:53 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 19 Dec 2018 16:53:33 +0000 (16:53 +0000)
1  2 
resources/lang/Messages.properties
resources/lang/Messages_es.properties
schemas/jalview.xsd
src/jalview/gui/CalculationChooser.java
src/jalview/gui/Jalview2XML.java
src/jalview/gui/PCAPanel.java
src/jalview/gui/TreePanel.java
test/jalview/io/Jalview2xmlTests.java

Simple merge
Simple merge
Simple merge
@@@ -3784,12 -3967,10 +3988,11 @@@ public class Jalview2XM
            tp.setTitle(tree.getTitle());
            tp.setBounds(new Rectangle(tree.getXpos(), tree.getYpos(),
                    tree.getWidth(), tree.getHeight()));
 -          tp.av = av;
 -          tp.treeCanvas.av = av; // af.viewport;
 -          tp.treeCanvas.ap = ap; // af.alignPanel;
 -
 +          tp.setViewport(av); // af.viewport; // TODO: verify 'associate with all
 +          // views'
 +          // works still
 +          tp.getTreeCanvas().setViewport(av); // af.viewport;
 +          tp.getTreeCanvas().setAssociatedPanel(ap); // af.alignPanel;
          }
          if (tp == null)
          {
          tp.showBootstrap(tree.getShowBootstrap());
          tp.showDistances(tree.getShowDistances());
  
 -        tp.treeCanvas.threshold = tree.getThreshold();
 +        tp.getTreeCanvas().setThreshold(tree.getThreshold());
+         tp.treeCanvas.applyToAllViews = tree.isLinkToAllViews();
  
          if (tree.getCurrentTree())
          {
@@@ -604,12 -494,12 +494,12 @@@ public class PCAPanel extends GPCAPane
  
      JRadioButtonMenuItem item;
      ButtonGroup buttonGroup = new ButtonGroup();
-     int i, iSize = aps.length;
-     final PCAPanel thisPCAPanel = this;
-     for (i = 0; i < iSize; i++)
+     int iSize = aps.length;
+     for (int i = 0; i < iSize; i++)
      {
 -      final AlignmentPanel panel = aps[i];
 -      item = new JRadioButtonMenuItem(panel.av.viewName, panel.av == rc.av);
 +      final AlignmentPanel ap = aps[i];
 +      item = new JRadioButtonMenuItem(ap.av.getViewName(), ap.av == rc.av);
        buttonGroup.add(item);
        item.addActionListener(new ActionListener()
        {
Simple merge
Simple merge