JAL-841; Structure trigger token in jalview.io.Alignmentfile extended
authorjanengelhardt <engelhardt87@googlemail.com>
Mon, 13 Jun 2011 08:30:03 +0000 (10:30 +0200)
committerjanengelhardt <engelhardt87@googlemail.com>
Mon, 25 Jul 2011 12:58:32 +0000 (14:58 +0200)
to RNA secondary structure ("S")

Change-Id: If09667335829497fd389d9bc71dfec10a37233df

src/jalview/gui/AlignFrame.java
src/jalview/io/AnnotationFile.java
src/jalview/io/AppletFormatAdapter.java
src/jalview/io/JalviewFileChooser.java

index fc2fe24..7b6c6af 100755 (executable)
@@ -4717,6 +4717,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
         viewport.updateSequenceIdColours();
         buildSortByAnnotationScoresMenu();
         alignPanel.paintAlignment(true);
+        System.out.println("Hallo");
       }
     } catch (Exception ex)
     {
index d4284a2..f1a7caf 100755 (executable)
@@ -1018,7 +1018,7 @@ public class AnnotationFile
         }\r
       }\r
       if (hasSymbols\r
-              && (token.equals("H") || token.equals("E") || token\r
+              && (token.equals("H") || token.equals("E") || token.equals("S") || token\r
                       .equals(" ")))\r
       {\r
         // Either this character represents a helix or sheet\r
index f24ecbc..e9574fc 100755 (executable)
@@ -67,7 +67,7 @@ public class AppletFormatAdapter
    */
   public static final String[] READABLE_EXTENSIONS = new String[]
   { "fa, fasta, fastq", "aln", "pfam", "msf", "pir", "blc", "amsa", "jar",
-      "sto", "stk" }; // ,
+      "stk" }; // ,
 
   // ".blast"
   // };
index acd24b3..6e15b90 100755 (executable)
@@ -80,12 +80,11 @@ public class JalviewFileChooser extends JFileChooser
     // SelectAllFilter needs to be set first before adding further
     // file filters to fix bug on Mac OSX
     setAcceptAllFileFilterUsed(selectAll);
-
+    
     for (int i = 0; i < suffix.length; i++)
     {
       JalviewFileFilter jvf = new JalviewFileFilter(suffix[i], desc[i]);
       addChoosableFileFilter(jvf);
-
       if ((selected != null) && selected.equalsIgnoreCase(desc[i]))
       {
         chosen = jvf;