Allow old style groups file
authoramwaterhouse <Andrew Waterhouse>
Thu, 27 Oct 2005 11:19:10 +0000 (11:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 27 Oct 2005 11:19:10 +0000 (11:19 +0000)
src/jalview/gui/AlignFrame.java

index f2d0b69..7b394a3 100755 (executable)
@@ -217,11 +217,18 @@ public class AlignFrame
 \r
           type = st.nextToken();\r
 \r
+          if (fr.getColour(type) == null)\r
+          {\r
+            // Probably the old style groups file\r
+            UserColourScheme ucs = new UserColourScheme(type);\r
+            fr.setColour(type, ucs.findColour("A"));\r
+          }\r
+\r
+\r
           sf = new SequenceFeature(type, desc, "", start, end);\r
 \r
           seq.addSequenceFeature(sf);\r
 \r
-          System.out.println(sf.getType()+" "+sf.getBegin());\r
 \r
          // sg = new SequenceGroup(text, ucs, true, true, false, start, end);\r
          // sg.addSequence(seq, false);\r