[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Linking View+Edito (ISelectionProvider, ISelectionListener)?
|
Hi!
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.
Well 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 tryed to look onto JavaEditor and OutlookView, but now I don`t understand nothing. Theese classes have a bit too complicated sturcture. Can anybody in few words provide me info about topic or point to the link or related material?
--
View in EZ forum: http://www.eclipsezone.com/eclipse/forums/m91954266.html