From: amwaterhouse Date: Thu, 27 Oct 2005 11:19:10 +0000 (+0000) Subject: Allow old style groups file X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b08ae4419c138647b696f440e09a75a39e63383e;p=jalview.git Allow old style groups file --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index f2d0b69..7b394a3 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -217,11 +217,18 @@ public class AlignFrame type = st.nextToken(); + if (fr.getColour(type) == null) + { + // Probably the old style groups file + UserColourScheme ucs = new UserColourScheme(type); + fr.setColour(type, ucs.findColour("A")); + } + + sf = new SequenceFeature(type, desc, "", start, end); seq.addSequenceFeature(sf); - System.out.println(sf.getType()+" "+sf.getBegin()); // sg = new SequenceGroup(text, ucs, true, true, false, start, end); // sg.addSequence(seq, false);