// this restricts the set of types displayed by the viewer to only the types
// in that file. But why is this only done in "View" mode? It seems like this
// belongs in AnnotationViewerDialog with the other code that sets up the
// viewer (e.g., the colors) from the style map file.
if (prefsMed.getStylemapFile().exists()) {
StyleMapEditor sedit = new StyleMapEditor(this, cas);
String sXml = readStylemapFile(prefsMed.getStylemapFile());
ArrayList sme = sedit.parseStyleList(sXml);
currentTaeOutputTypes = new String[sme.size()];
for (int i = 0; i < sme.size(); i++) {
StyleMapEntry e = (StyleMapEntry) sme.get(i);
currentTaeOutputTypes[i] = e.getAnnotationTypeName();
}