JAL-1232 fix - ensure display all columns flag is set if an RNA helix is created...
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 24 Apr 2014 16:39:58 +0000 (17:39 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 24 Apr 2014 16:39:58 +0000 (17:39 +0100)
src/jalview/appletgui/AnnotationPanel.java
src/jalview/gui/AnnotationPanel.java

index f33f627..250d222 100755 (executable)
@@ -236,6 +236,10 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI,
       if ((label.length() > 0) && !aa[activeRow].hasText)
       {
         aa[activeRow].hasText = true;
+        if (evt.getActionCommand().equals(STEM))
+        {
+          aa[activeRow].showAllColLabels=true;
+        }
       }
 
       for (int i = 0; i < av.getColumnSelection().size(); i++)
index e587586..3e9b38e 100755 (executable)
@@ -361,8 +361,11 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
       if ((label.length() > 0) && !aa[activeRow].hasText)
       {
         aa[activeRow].hasText = true;
+        if (evt.getActionCommand().equals(STEM))
+        {
+          aa[activeRow].showAllColLabels=true;
+        }
       }
-
       for (int i = 0; i < av.getColumnSelection().size(); i++)
       {
         int index = av.getColumnSelection().columnAt(i);
@@ -377,6 +380,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
 
         anot[index].secondaryStructure = type;
         anot[index].displayCharacter = label;
+        
       }
     }
     av.getAlignment().validateAnnotation(aa[activeRow]);