Hi,

can you add a method to the AnnotationEditor for accessing the StyledText method? Mabye I missed something, but I think I can't access it right now. For example getCursorPosition(), and I don't know if that will give the intended result.


Peter


Am 17.10.2011 14:47, schrieb Joern Kottmann (Commented) (JIRA):
     [ 
https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128825#comment-13128825
 ]

Joern Kottmann commented on UIMA-2260:
--------------------------------------

I am also +1 to keep this feature.

Well, mCursorPosition is a hack, because we cannot register a listener for 
caret position changes. There it is needed to detect changes in the current and 
last known caret position.

I suggest that we instead ask the Styled Text to give you the current caret 
position.

Let CAS Editor communicate text selection changes
-------------------------------------------------

                 Key: UIMA-2260
                 URL: https://issues.apache.org/jira/browse/UIMA-2260
             Project: UIMA
          Issue Type: New Feature
          Components: CasEditor
    Affects Versions: 2.4.0SDK
            Reporter: Peter Klügl
            Assignee: Joern Kottmann
            Priority: Minor
             Fix For: 2.4.0SDK


Let CAS Editor communicate text selection changes. Add some interface and 
listener structure if there is not one yet for the text selection event in the 
Annotation Editor. Views should be able to be notified also about simple text 
selection changes in addition to the annotation selection in the editor.
--
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




--
---------------------------------------------------------------------
Dipl.-Inf. Peter Klügl
Universität Würzburg        Tel.: +49-(0)931-31-86741
Am Hubland                  Fax.: +49-(0)931-31-86732
97074 Würzburg              mail: [email protected]
     http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------

Reply via email to