0 是的, addDocumentSelectionOption是一个很好的方法。 这是使用它指定一个附加序列文档的示例: //添加选项列表<DocumentField>fieldsToDisplay = Arrays.asList(DocumentField.DESCRIPTION_FIELD, DocumentField.SEQUENCE_LENGTH); DocumentSelectionOption documentSelectionOption = options.addDocumentSelectionOption("additionalSequence", "Addition Sequence:", DocumentSelectionOption.FolderOrDocuments.EMPTY, DocumentType.NUCLEOTIDE_SEQUENCE_TYPE, fieldsToDisplay, false, Collections.emptyList()); //获取它的值AnnotatedPluginDocument additionalDocument = documentSelectionOption.getDocuments().get(0); 理查德·摩尔 2017年6月1日20:56 0 票分享 评论动作 永久链接
0 使用上面的代码块,我收到一个带有空默认值参数的 NullPointerException。我将如何解决这个问题? (我想在下面重现) 马修·沉 2017年6月16日20:38 0 票分享 评论动作 永久链接
0 抱歉,您可以将以下内容用于空选择而不是 null: DocumentSelectionOption.FolderOrDocuments.EMPTY 理查德·摩尔 2017年6月19日4:30 0 票分享 评论动作 永久链接