Merge branch 'develop' into spike/JAL-4047/JAL-4048_columns_in_sequenceID
authorJames Procter <j.procter@dundee.ac.uk>
Sat, 15 Apr 2023 09:52:09 +0000 (10:52 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Sat, 15 Apr 2023 09:52:09 +0000 (10:52 +0100)
1  2 
src/jalview/api/AlignViewportI.java
src/jalview/gui/PopupMenu.java
src/jalview/viewmodel/AlignmentViewport.java

@@@ -554,5 -557,5 +558,7 @@@ public interface AlignViewportI extend
     */
    Iterator<int[]> getViewAsVisibleContigs(boolean selectedRegionOnly);
  
 +  IdColumns getIdColumns();
++
+   ContactMatrixI getContactMatrix(AlignmentAnnotation alignmentAnnotation);
  }
Simple merge
@@@ -3098,26 -3123,23 +3124,45 @@@ public abstract class AlignmentViewpor
              false));
    }
  
 +  /**
 +   * ordered list of annotation values displayed per sequence in ID panel
 +   */
 +  private IdColumns id_columns = null;
 +
 +  /**
 +   * available and currently visible columns for this view
 +   */
 +  @Override
 +  public IdColumns getIdColumns()
 +  {
 +    if (alignment == null)
 +    {
 +      return null;
 +    }
 +    if (id_columns == null)
 +    {
 +      id_columns = new IdColumns(alignment);
 +    }
 +    return id_columns;
 +  }
 +
+   public void setSavedUpToDate(boolean s)
+   {
+     setSavedUpToDate(s, QuitHandler.Message.UNSAVED_CHANGES);
+   }
+   public void setSavedUpToDate(boolean s, QuitHandler.Message m)
+   {
+     Console.debug(
+             "Setting " + this.getViewId() + " setSavedUpToDate to " + s);
+     savedUpToDate = s;
+     QuitHandler.setMessage(m);
+   }
+   public boolean savedUpToDate()
+   {
+     Console.debug("Returning " + this.getViewId() + " savedUpToDate value: "
+             + savedUpToDate);
+     return savedUpToDate;
+   }
  }