Issue 68622

Summary: Listening for Writer document selection changes from Java does not give expected results
Product: Writer Reporter: mfrancis <openoffice>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 2.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Description Flags
Sample source illustrating the issue none

Description mfrancis 2006-08-15 00:26:40 UTC

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.
Comment 6 Marcus 2017-05-20 11:22:46 UTC
Reset assigne to the default "".