From b08ae4419c138647b696f440e09a75a39e63383e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 27 Oct 2005 11:19:10 +0000 Subject: [PATCH] Allow old style groups file --- src/jalview/gui/AlignFrame.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 1.7.10.2