0-length, not-null SelectionRange?
I have a class that extends SequenceAnnotationGenerator. I think there's not a way to get what I'm trying to do here, but figured I'd ask. In both generate and getOptions, the SelectionRange is passed in. And if nothing was selected, that value is null. As per the docs this indicates everything is selected.
I was hoping to find a way to initiate a 0-length selection at a given position. For instance, in the image below Geneious itself understands the position that I've selected. Is it possible to trigger my plugin in some way where for instance the SelectionRange would have first residue of 44311944 and last residue of 44311944?
-
You're correct. Unfortunately I don't think there is a way to do that.
0 -
The SequenceSelection passed into a DocumentOperation does support zero length selections I believe, so one option would be to switch to using DocumentOperation. But that obviously comes with many other difference that may not suit your use case.
0 -
Thanks all. Richard, I'll check out DocumentOperation - as you suggest there's a good chance that it's more effort to convert than worth, but perhaps not. I'll look at it in context with some of the other requested changes to this plugin.
0
Please sign in to leave a comment.
Comments
3 comments