Skip to main content

Export only selected annotations to file


1 comment

  • Official comment
    Tom Edwards

    Hi Pam,

    Unfortunately you've hit a limitation with our dev kit. Any selections within a document are not currently supported by Document Exporters. :(

    One possible workaround, would be to create a Document Operation and manually export all selected annotations from within the operation. Eg something like this:

    public void performOperation(AnnotatedPluginDocument[] annotatedDocuments, ProgressListener progressListener, Options options, SequenceSelection sequenceSelection, OperationCallback callback) throws DocumentOperationException {
    List<SequenceSelection.SelectedAnnotation> selectedAnnotations = sequenceSelection.getAnnotations();
    // ...
    // Create a new file and write the selected annotations into it.
    // ...


Please sign in to leave a comment.