eclipse - How to tell user events from synthetic events? -


I have a JFAS editor, which is composed mostly of a treeover .

When someone receives a SelectionChangedEvent , they call the second setSelection () method ... and there is a problem in it. setsSelection () creates another SelectionChangedEvent ... and thus the infinite loop has joined.

Is there a way to say that SelectionChangedEvent setSelection () ?

Is there still a better way to do this type of fatal-hug? Actual user interaction was created instead of calling other objects

Clues were welcomed.

Normally, you will check a flag at the beginning of the check to see whether you The event is in the middle of the handler if the flag is set, then you exit without processing.

If the flag is not set, then you set the flag, the process, then set the flag back.


Comments