I have a TreeViewer, and I want to stop the user from changing selection (e.g. because he has unsaved changes).
However, addSelectionListener is deprecated (why?) and addSelectionChangedListener won't help me because SelectionChangedEvent doesn't have a doit field. What is the correct thing to do here: use addSelectionListener despite deprecation? Or perhaps use addSelectionListener on the Tree instead of the TreeViewer?