You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (Created JIRA)" <de...@uima.apache.org> on 2011/10/14 10:56:12 UTC
[jira] [Created] (UIMA-2260) Let CAS Editor communicate text
selection changes
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
Priority: Minor
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
[jira] [Resolved] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Joern Kottmann (Resolved) (JIRA)" <de...@uima.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joern Kottmann resolved UIMA-2260.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.4.0SDK
It is now implemented. Please test if it works for you and solves your problem.
> 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
[jira] [Assigned] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Joern Kottmann (Assigned) (JIRA)" <de...@uima.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joern Kottmann reassigned UIMA-2260:
------------------------------------
Assignee: Joern Kottmann
> 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
>
> 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
[jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128823#comment-13128823 ]
Peter Klügl commented on UIMA-2260:
-----------------------------------
I only get a TextSelection if a text span is selected, but not, if just a click moved the caret. Sorry, but I think that doesn't solve my problem. Nevertheless, I would keep this functionality since I can make use of it with other views.
I can solve my problem if I have access to AnnotationEditor.mCursorPosition. Then I can listen to the StructuredSelection and then ask the editor about the caret position. Can you add a getter?
> 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
[jira] [Closed] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Joern Kottmann (Closed) (JIRA)" <de...@uima.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joern Kottmann closed UIMA-2260.
--------------------------------
Doesn't solve the issue for which is was intended, but is still considered useful for other cases.
> 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
Re: [jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by Peter Klügl <pk...@uni-wuerzburg.de>.
Am 17.10.2011 15:11, schrieb Jörn Kottmann:
> On 10/17/11 2:55 PM, Peter Klügl wrote:
>>
>> 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.
>
> The method was added, see UIMA-2263.
Testing it right now.
>
> Do you need this to find annotations at that position?
>
>
Yes, but I also check on some filters defined in the view.
Peter
--
---------------------------------------------------------------------
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: pkluegl@informatik.uni-wuerzburg.de
http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------
Re: [jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by Jörn Kottmann <ko...@gmail.com>.
On 10/17/11 2:55 PM, Peter Klügl wrote:
>
> 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.
The method was added, see UIMA-2263.
Do you need this to find annotations at that position?
Jörn
Re: [jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by Peter Klügl <pk...@uni-wuerzburg.de>.
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: pkluegl@informatik.uni-wuerzburg.de
http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------
[jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Joern Kottmann (Commented) (JIRA)" <de...@uima.apache.org>.
[ 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
[jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Joern Kottmann (Commented) (JIRA)" <de...@uima.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127419#comment-13127419 ]
Joern Kottmann commented on UIMA-2260:
--------------------------------------
Further information about the proposed solution can be found here:
http://www.eclipse.org/webtools/wst/components/sse/designs/EditorSelection.html
> 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
>
> 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
[jira] [Commented] (UIMA-2260) Let CAS Editor communicate text
selection changes
Posted by "Joern Kottmann (Commented) (JIRA)" <de...@uima.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127417#comment-13127417 ]
Joern Kottmann commented on UIMA-2260:
--------------------------------------
The Annotation Editor should send out a selection object which implements the ITextSelection and the IStructuredSelection interface. Already existing listeners can only handle the IStructuredSelection and don't need to be changed. New listeners are are able to also receive the text selection information, and also the annotation selections.
> 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
>
> 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