Issue 68622 - Listening for Writer document selection changes from Java does not give expected results
Summary: Listening for Writer document selection changes from Java does not give expec...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 00:26 UTC by mfrancis
Modified: 2017-05-20 11:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample source illustrating the issue (6.70 KB, text/plain)
2006-08-15 00:28 UTC, mfrancis
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.
Comment 6 Marcus 2017-05-20 11:22:46 UTC
Reset assigne to the default "issues@openoffice.apache.org".