Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Distinguish between user triggered & program triggered documentEvent?
Distinguish between user triggered & program triggered documentEvent? [message #296604] Tue, 27 December 2005 22:41
Eclipse UserFriend
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
Previous Topic:Builders and Natures - when do they have access to the IPreferenceStore
Next Topic:duplicate a project
Goto Forum:
  


Current Time: Thu Jun 19 16:40:29 EDT 2025

Powered by FUDForum. Page generated in 0.14497 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top