public boolean parseAnnotationFrom(AlignmentI al, BufferedReader in)\r
throws Exception\r
{\r
+ boolean modified=false;\r
String groupRef = null;\r
Hashtable groupRefRows = new Hashtable();\r
\r
{\r
// TODO: use graduated colour def'n here too\r
colourAnnotations(al, st.nextToken(), st.nextToken());\r
- continue;\r
+ modified=true;continue;\r
}\r
\r
else if (token.equalsIgnoreCase("COMBINE"))\r
{\r
combineAnnotations(al, st);\r
- continue;\r
+ modified=true;continue;\r
}\r
else if (token.equalsIgnoreCase("ROWPROPERTIES"))\r
{\r
addRowProperties(al, st);\r
- continue;\r
+ modified=true;continue;\r
}\r
else if (token.equalsIgnoreCase("GRAPHLINE"))\r
{\r
addLine(al, st);\r
+ modified=true;\r
continue;\r
}\r
\r
else if (token.equalsIgnoreCase("PROPERTIES"))\r
{\r
addProperties(al, st);\r
- continue;\r
+ modified=true; continue;\r
}\r
\r
else if (token.equalsIgnoreCase("BELOW_ALIGNMENT"))\r
{\r
setBelowAlignment(al, st);\r
- continue;\r
+ modified=true;continue;\r
}\r
else if (token.equalsIgnoreCase("ALIGNMENT"))\r
{\r
addAlignmentDetails(al, st);\r
- continue;\r
+ modified=true;continue;\r
}\r
\r
// Parse out the annotation row\r
((Vector) groupRefRows.get(groupRef)).addElement(annotation);\r
}\r
}\r
+ // and set modification flag\r
+ modified=true;\r
}\r
// Finally, resolve the groupRefs\r
Enumeration en = groupRefRows.keys();\r
((Vector) groupRefRows.get(groupRef)).removeAllElements();\r
}\r
}\r
- return true;\r
+ return modified;\r
}\r
\r
private Object autoAnnotsKey(AlignmentAnnotation annotation, SequenceI refSeq, String groupRef)\r