Merge remote-tracking branch 'origin/develop' into features/JAL-2388hiddencolumnschanges
authorkiramt <k.mourao@dundee.ac.uk>
Fri, 5 May 2017 09:50:22 +0000 (10:50 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Fri, 5 May 2017 09:50:22 +0000 (10:50 +0100)
features/JAL-2388hiddencolumnschanges

Conflicts:
src/jalview/appletgui/TreePanel.java
src/jalview/gui/AnnotationColumnChooser.java
src/jalview/gui/PCAPanel.java
src/jalview/gui/TreePanel.java

17 files changed:
1  2 
src/jalview/appletgui/AlignFrame.java
src/jalview/appletgui/AlignViewport.java
src/jalview/appletgui/AnnotationColumnChooser.java
src/jalview/appletgui/PCAPanel.java
src/jalview/appletgui/SeqPanel.java
src/jalview/appletgui/TreePanel.java
src/jalview/datamodel/AlignmentAnnotation.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/AlignViewport.java
src/jalview/gui/AlignmentPanel.java
src/jalview/gui/AnnotationColumnChooser.java
src/jalview/gui/Jalview2XML.java
src/jalview/gui/PCAPanel.java
src/jalview/gui/PopupMenu.java
src/jalview/gui/SeqPanel.java
src/jalview/gui/TreePanel.java
src/jalview/structure/StructureSelectionManager.java

Simple merge
   */
  package jalview.appletgui;
  
+ import jalview.analysis.scoremodels.ScoreModels;
+ import jalview.analysis.scoremodels.SimilarityParams;
+ import jalview.api.analysis.ScoreModelI;
  import jalview.datamodel.Alignment;
  import jalview.datamodel.AlignmentView;
 -import jalview.datamodel.ColumnSelection;
 +import jalview.datamodel.HiddenColumns;
  import jalview.datamodel.SeqCigar;
  import jalview.datamodel.SequenceI;
  import jalview.util.MessageManager;
Simple merge
   */
  package jalview.appletgui;
  
+ import jalview.analysis.AverageDistanceTree;
  import jalview.analysis.NJTree;
+ import jalview.analysis.TreeBuilder;
+ import jalview.analysis.TreeModel;
+ import jalview.analysis.scoremodels.ScoreModels;
+ import jalview.analysis.scoremodels.SimilarityParams;
  import jalview.api.analysis.ScoreModelI;
- import jalview.api.analysis.ViewBasedAnalysisI;
  import jalview.datamodel.Alignment;
- import jalview.datamodel.AlignmentView;
 -import jalview.datamodel.ColumnSelection;
 +import jalview.datamodel.HiddenColumns;
  import jalview.datamodel.SequenceI;
  import jalview.io.NewickFile;
- import jalview.schemes.ResidueProperties;
  import jalview.util.MessageManager;
  
  import java.awt.BorderLayout;
@@@ -171,9 -150,9 +150,9 @@@ public class TreePanel extends EmbmenuF
        } catch (Exception ex)
        {
        }
-       ;
-       Object[] alAndColsel = tree.seqData
+       Object[] alAndColsel = tree.getOriginalData()
 -              .getAlignmentAndColumnSelection(gc);
 +              .getAlignmentAndHiddenColumns(gc);
  
        if (alAndColsel != null && alAndColsel[0] != null)
        {
Simple merge
Simple merge
Simple merge
@@@ -21,8 -21,7 +21,7 @@@
  
  package jalview.gui;
  
- import jalview.datamodel.AlignmentAnnotation;
 -import jalview.datamodel.ColumnSelection;
 +import jalview.datamodel.HiddenColumns;
  import jalview.schemes.AnnotationColourGradient;
  import jalview.util.MessageManager;
  import jalview.viewmodel.annotationfilter.AnnotationFilterParameter;
@@@ -86,8 -86,12 +86,12 @@@ public class AnnotationColumnChooser ex
  
    private int actionOption = ACTION_OPTION_SELECT;
  
 -  private ColumnSelection oldColumnSelection;
 +  private HiddenColumns oldHiddenColumns;
  
+   protected int MIN_WIDTH = 420;
+   protected int MIN_HEIGHT = 430;
    public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap)
    {
      super(av, ap);
Simple merge
@@@ -23,11 -27,9 +27,9 @@@ import jalview.api.analysis.SimilarityP
  import jalview.datamodel.Alignment;
  import jalview.datamodel.AlignmentI;
  import jalview.datamodel.AlignmentView;
 -import jalview.datamodel.ColumnSelection;
 +import jalview.datamodel.HiddenColumns;
- import jalview.datamodel.SeqCigar;
  import jalview.datamodel.SequenceI;
  import jalview.jbgui.GPCAPanel;
- import jalview.schemes.ResidueProperties;
  import jalview.util.MessageManager;
  import jalview.viewmodel.AlignmentViewport;
  import jalview.viewmodel.PCAModel;
Simple merge
@@@ -2101,14 -2118,16 +2128,20 @@@ public class SeqPanel extends JPanel im
      /*
       * Map column selection
       */
 -    ColumnSelection cs = MappingUtils.mapColumnSelection(colsel, sourceAv,
 -            av);
 +    // ColumnSelection cs = MappingUtils.mapColumnSelection(colsel, sourceAv,
 +    // av);
 +    ColumnSelection cs = new ColumnSelection();
 +    HiddenColumns hs = new HiddenColumns();
 +    MappingUtils.mapColumnSelection(colsel, hidden, sourceAv, av, cs, hs);
      av.setColumnSelection(cs);
 +    av.getAlignment().setHiddenColumns(hs);
  
+     // lastly, update any dependent dialogs
+     if (ap.getCalculationDialog() != null)
+     {
+       ap.getCalculationDialog().validateCalcTypes();
+     }
      PaintRefresher.Refresh(this, av.getSequenceSetId());
  
      return true;
@@@ -514,8 -431,9 +431,8 @@@ public class TreePanel extends GTreePan
      } catch (Exception ex)
      {
      }
-     ;
-     Object[] alAndColsel = tree.seqData.getAlignmentAndHiddenColumns(gc);
 -    Object[] alAndColsel = originalData
 -            .getAlignmentAndColumnSelection(gc);
++    Object[] alAndColsel = originalData.getAlignmentAndHiddenColumns(gc);
  
      if (alAndColsel != null && alAndColsel[0] != null)
      {