In SWT is it possible to distinguish between events caused user interaction vs code?
|Added at||2016-11-06 21:11|
This example is using JRuby.
For example if I add listener to a Text widget like such:
The listener is called if the user interacts with the widget or I programmatically set the value of the widget text. Is there any way to distinguish between the two potential triggers?
BTW, I know I can listen for different events ie (key events vs modify events), so I am not looking for a workaround, just if its possible to distinguish between the two triggers.