I have a table view which must provide to it`s listeners - event`s about
change in selection, and information about selected row - object. The
other part - editor, must recieve these event`s and display appropriate
info.
You can say that it is a classical case.
But Actually I`ve got stucked on this.
As I understand tableView must implement:
ISelectionProvider - Here my question is: is that enough? I think there
should be another interface through which listeners will be notified -
what is the name of that interface?
formEditor must implement:
IISelectionListener or ISelectionChangedListener or both of them? - they
both have method selectionChanged(...) but how can I use them?
I was lurking for the answer in org.eclipse.ui and org.eclipse.jdt tried
to look into JavaEditor and OutlookView, but now I don`t understand
nothing. Theese classes have a bit too complicated stucture. Can anybody
in few words provide me info about topic or point to the link or related
material?