merge
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 31 May 2016 16:56:31 +0000 (17:56 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 31 May 2016 16:56:31 +0000 (17:56 +0100)
help/html/features/uniprotsequencefetcher.html
src/jalview/api/AlignViewportI.java
src/jalview/gui/AlignFrame.java
src/jalview/viewmodel/AlignmentViewport.java

index 55b4d71..9b2e3fa 100644 (file)
@@ -64,7 +64,7 @@
 
                <li><strong>Bulk Uniprot retrieval</strong><br>
       Firstly, switch the search target to Uniprot Id, then enter multiple IDs by separating them with a semi-colon.
-      e.g. fila_human; mnt_human; mnt_mouse<br />Hitting Return or OK will automatically
+      e.g. fila_human; mnt_human; mnt_mouse.<br />Hitting Return or OK will automatically
       fetch those IDs, like the default Sequence Fetcher interface.</li>
       
             <li><strong>Advanced / Custom querying</strong>  
     <strong>Result pagination</strong>
   </p>
   The query results returned from the Uniprot server are paginated for performance optimisation. 
-  The button labelled <strong>' << '</strong> and <strong>' >> '</strong> can be used to navigate to the next or previous result page respectively. 
+  The button labelled <strong>'&nbsp;&lt;&lt;&nbsp;'</strong> and <strong>'&nbsp;&gt;&gt;&nbsp;'</strong> can be used to navigate to the next or previous result page respectively. 
   The page range is shown on the title bar of the Free Text Search interface. Jalview's pagination implementation supports multiple selection of entries across multiple pages. 
   
   
index 45e77ba..f40b73b 100644 (file)
@@ -376,5 +376,20 @@ public interface AlignViewportI extends ViewStyleI
    */
   void setFollowHighlight(boolean b);
 
+  /**
+   * Set whether hidden Sequences should be trimmed off during an export
+   * operation.
+   * 
+   * @param isExportHiddenSeqs
+   */
+  public void setExportHiddenSeqs(boolean isExportHiddenSeqs);
+
+  /**
+   * If true hidden Sequences are exported otherwise they aren't
+   * 
+   * @return
+   */
+  public boolean isExportHiddenSeqs();
+
   public void applyFeaturesStyle(FeatureSettingsModelI featureSettings);
 }
index d548695..818c150 100644 (file)
@@ -1313,6 +1313,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
 
     if (viewport.hasHiddenColumns() && !settings.isExportHiddenColumns())
     {
+      viewport.setExportHiddenSeqs(settings.isExportHiddenSequences());
       omitHidden = viewport.getViewAsString(false);
     }
 
index c16fdce..6581bef 100644 (file)
@@ -1601,7 +1601,7 @@ public abstract class AlignmentViewport implements AlignViewportI,
     }
     else
     {
-      if (hasHiddenRows())
+      if (hasHiddenRows() && isExportHiddenSeqs)
       {
         iSize = alignment.getHiddenSequences().getFullAlignment()
                 .getHeight();
@@ -2719,4 +2719,18 @@ public abstract class AlignmentViewport implements AlignViewportI,
       }
     }
   }
+
+  private boolean isExportHiddenSeqs = true;
+
+  @Override
+  public void setExportHiddenSeqs(boolean isExportHiddenSeqs)
+  {
+    this.isExportHiddenSeqs = isExportHiddenSeqs;
+  }
+
+  @Override
+  public boolean isExportHiddenSeqs()
+  {
+    return isExportHiddenSeqs;
+  }
 }