Apache OpenOffice (AOO) Bugzilla – Issue 68622
Listening for Writer document selection changes from Java does not give expected results
Last modified: 2017-05-20 11:22:46 UTC
Hello, I am attempting to develop a Java application that interfaces with Writer and listens for changes in the current text selection, but selection notifications seem to behave a little oddly for some selection methods. Action: Select text using keyboard using Shift+Right multiple times Expected result: One call to listener's selectionChanged() method for each keypress Actual result: First press of right causes a call to selectionChanged(); subsequent presses have no effect Action: Select text by dragging with mouse Expected result: One call to the listener's selectionChanged() method Actual result: Two calls to the listener's selectionChanged() method when mouse is released (In comparison, alternating Shift+Home and Shift+End works as expected) To reproduce: The attached example source opens a Writer window and listens for selections within it; detected selections are printed to stdout.
Created attachment 38513 [details] Sample source illustrating the issue
@os: Please take over.
Setting target to OOo Later
Changed component to "Word Processor" ...
...but please don't change owner.
Reset assigne to the default "issues@openoffice.apache.org".