// System.out.println("");
FSTreeNode protoNode = (FSTreeNode) this.main.getFsTree().getLastSelectedPathComponent();
if (!(protoNode instanceof FSNode)) {
return;
}
FSNode node = (FSNode) protoNode;
if (node == null) {
return;
}
// Remeber start of current selection.
final int currentSelStart = this.main.getTextArea().getSelectionStart();
if (node.isAnnotation()) {
if (null != this.main.getCas().getDocumentText()) {
this.main.getTextArea().setSelectionStart(node.getStart());
this.main.getTextArea().setSelectionEnd(node.getEnd());
// System.out.println(
// "Setting selection from " + node.getStart() + " to " +
// node.getEnd());
this.main.getTextArea().getCaret().setSelectionVisible(true);
}