Package org.apache.uima.caseditor.core.model.dotcorpus

Examples of org.apache.uima.caseditor.core.model.dotcorpus.EditorAnnotationStatus


    if (getDocument() != null) {
      mShowAnnotationsMenu = new ShowAnnotationsMenu(
          getDocument().getProject().getEditorAnnotationStatus(),
          getDocument().getCAS().getTypeSystem());

      EditorAnnotationStatus status = getDocument().getProject().getEditorAnnotationStatus();


      setAnnotationMode(getDocument().getType(status.getMode()));
    }
  }
View Full Code Here


    return getSourceViewer().getTextWidget().getSelectionCount() != 0;
  }

  private void setProjectEditorStatus() {
    // TODO: do not replace if equal ... check this
    EditorAnnotationStatus status = new EditorAnnotationStatus(getAnnotationMode().getName(),
            mShowAnnotationsMenu.getSelectedTypes());
    getDocument().getProject().setEditorAnnotationStatus(status);
  }
View Full Code Here

          // TODO: only synchronize annotation which
          // must be removed/added
          syncAnnotations();

          EditorAnnotationStatus status = getDocument().getProject().getEditorAnnotationStatus();

          getDocument().getProject().setEditorAnnotationStatus(
                  new EditorAnnotationStatus(status.getMode(), getSelectedTypes()));
        }
      });
    }
View Full Code Here

      List<Type> displayTypes = typeSystem.getProperlySubsumedTypes(annotationType);

      // removes the document annotation
      displayTypes.remove(typeSystem.getType(CAS.TYPE_NAME_DOCUMENT_ANNOTATION));
     
      mEditorAnnotationStatus = new EditorAnnotationStatus(
              annotationType.getName(), displayTypes);
    }
  }
View Full Code Here

    }
    else if (mTypesystem != null && resource.equals(mTypesystem.getResource())) {
      mTypesystem.changedResource(resource, delta);

      if (getTypesystemElement().getTypeSystem() != null) {
          mEditorAnnotationStatus = new EditorAnnotationStatus(CAS.TYPE_NAME_ANNOTATION, null);
        }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.caseditor.core.model.dotcorpus.EditorAnnotationStatus

Copyright © 2018 www.massapicom. 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.