Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||Listening for Writer document selection changes from Java does not give expected results|
|Component:||code||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description mfrancis 2006-08-15 00:26:40 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.
Comment 1 mfrancis 2006-08-15 00:28:42 UTC
Created attachment 38513 [details] Sample source illustrating the issue
Comment 2 Stephan Bergmann 2006-08-15 08:25:34 UTC
@os: Please take over.
Comment 3 Oliver Specht 2007-06-06 12:47:59 UTC
Setting target to OOo Later
Comment 4 kay.ramme 2007-06-18 11:18:04 UTC
Changed component to "Word Processor" ...
Comment 5 michael.ruess 2007-06-18 15:00:56 UTC
...but please don't change owner.