Examples of FSNode


Examples of org.apache.uima.tools.cvd.FSNode

    // 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);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.