Examples of ICasDocument


Examples of org.apache.uima.caseditor.editor.ICasDocument

  @Override
  protected IPageBookViewPage doCreatePage(ICasEditor editor) {

    IPageBookViewPage result = null;

    ICasDocument document = editor.getDocument();

    if (document != null) {
      EditViewPage page = new EditViewPage(this, editor, document);

      result = page;
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ICasDocument

   */
  @Override
  public void run() {
    AnnotationSelection annotations = new AnnotationSelection(getStructuredSelection());

    ICasDocument document = editor.getDocument();
   
    CAS documentCAS = document.getCAS();

    AnnotationFS mergedAnnotation = documentCAS.createAnnotation(annotations.getFirst().getType(),
            annotations.getFirst().getBegin(), annotations.getLast().getEnd());

    document.removeFeatureStructures(annotations.toList());
    document.addFeatureStructure(mergedAnnotation);
  }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ICasDocument

  @Override
  protected IPageBookViewPage doCreatePage(ICasEditor editor) {

    IPageBookViewPage result = null;

    ICasDocument document = editor.getDocument();

    if (document != null) {
      FeatureStructureBrowserViewPage page = new FeatureStructureBrowserViewPage(
          editor);
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ICasDocument

  @Override
  protected PageRec doCreatePage(ICasEditor editor) {

    PageRec result = null;

    ICasDocument document = editor.getDocument();

    if (document != null) {
      EditViewPage page = new EditViewPage(this, editor, document);
      initPage(page);
      page.createControl(getPageBook());
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ICasDocument

    monitor.subTask("Processing documents, please wait!");

    for (DocumentElement documentElement : documents) {

      final ICasDocument doc;

      try {
        doc = documentElement.getDocument(false);
      } catch (CoreException e) {
        throw new InvocationTargetException(e);
      }

      boolean wasCasChanged = process(doc.getCAS());

      if (wasCasChanged) {
        Display.getDefault().syncExec(new Runnable() {
          public void run() {
            doc.changed();
          }
        });

        try {
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ICasDocument

  @Override
  protected PageRec doCreatePage(ICasEditor editor) {

    PageRec result = null;

    ICasDocument document = editor.getDocument();

    if (document != null) {
      FeatureStructureBrowserViewPage page = new FeatureStructureBrowserViewPage(
          document);
      initPage(page);
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ICasDocument

   */
  @Override
  public void run() {
    AnnotationSelection annotations = new AnnotationSelection(getStructuredSelection());

    ICasDocument document = editor.getDocument();
   
    CAS documentCAS = document.getCAS();

    AnnotationFS mergedAnnotation = documentCAS.createAnnotation(annotations.getFirst().getType(),
            annotations.getFirst().getBegin(), annotations.getLast().getEnd());

    document.removeFeatureStructures(annotations.toList());
    document.addFeatureStructure(mergedAnnotation);
  }
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.