this.main = frame;
}
public void actionPerformed(ActionEvent event) {
String title = this.main.getIndexLabel() + " - " + this.main.getIndex().getType().getName();
MultiAnnotViewerFrame f = new MultiAnnotViewerFrame(title);
f.addWindowListener(new CloseAnnotationViewHandler(this.main));
FSIterator it = this.main.getIndex().iterator();
final String text = this.main.getCas().getDocumentText();
System.out.println("Creating extents.");
AnnotationExtent[] extents = MultiMarkup.createAnnotationMarkups(it, text.length(), this.main
.getStyleMap());
System.out.println("Initializing text frame.");
f.init(text, extents, this.main.getDimension(MainFrame.annotViewSizePref));
System.out.println("Done.");
}