Distinguish between user triggered & program triggered documentEvent? [message #296604] |
Tue, 27 December 2005 22:41 |
Eclipse User |
|
|
|
Originally posted by: marygeng.hotmail.com
Hi,
I am developing a Distributed system using Eclipse.
1st user and 2nd user both hold a local copy of a same document. The
system aims to capture what the 1st user changes on the document (using
documentListener), transmit the documentEvent to the 2nd user and make
the corresponding changes on 2nd user's document by program.
However, reflection problem occurs when I am trying to do so.
When program updates 2nd user's document using 1st user's input,
documentListener on 2nd user's document will also capture this
documentChanged event and transmit it back to 1st user.
This causes infinite loop and nonstop updating, while only 1 operation
is done by the 1st user.
Can anyone please give me some advice on how to distinguish between
whether a documentEvent is caused by program or local user Keyboard
input?
Thanks in advance!!
Lijuan
|
|
|
Powered by
FUDForum. Page generated in 0.14497 seconds