I am working on an eclipse RCP project. It has several views with TreeViewer
and I use selectionChanged()
method to handle selection events. However, at times I need to set selection programmatically.For this, in selectionChanged()
method, I invoke setSelection()
method of TreeViewer
to set the desired selection. This method fires selectionChanged()
method of all views thus resulting in cyclic calls to selectionChanged()
.
How can I select an item from the TreeViewer
or StructuredViewer
without firing selectionChanged()
for other views?