[ 
https://issues.apache.org/jira/browse/UIMA-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126504#comment-13126504
 ] 

Joern Kottmann commented on UIMA-2252:
--------------------------------------

Here is also an article which explains how it works:
http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html

Usually you want to check that it is a StructuredSelection and then you might 
want to filter
out anything which is not an annotation, that can be done with the 
AnnotationSelection class,
have a quick look at it and search for a usage in the Cas Editor code base.

Can you elaborate a bit ont eh caret position. In the Annotation Editor there 
are also ways to select a piece of text which do not change the caret position. 
If you just look for caret position changes you miss these. Thats why  I 
believe you usually want to know about the text selection (includes offsets in 
the editor).

In eclipse there is an ITextSelection, would that solve your problem? 
                
> Migrate TextMarker visualization to CAS Editor
> ----------------------------------------------
>
>                 Key: UIMA-2252
>                 URL: https://issues.apache.org/jira/browse/UIMA-2252
>             Project: UIMA
>          Issue Type: New Feature
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> Start the migration of the CEV plugins of the TextMarker using the CAS Editor 
> code base. Investigate the which changes in the CAS Editor are needed to 
> support the existing TextMarker functionality.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to