[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Dispatching application-level events to Eclipse parts

David Kyle wrote:
We are building more and more complicated interactions between our editors and views in our seismic processing application. We are planning on using the selection service to handle notification events.

One issue comes to mind. How would an IWorkbenchPart which is created late in the game update itself? It wasn't around to hear the selection service notifications.

An example of this is to select a file in the project explorer and then show the properties view. The properties view is empty until the user makes another selection in the project explorer.


This issue is easily solved by looking at he current selection.
So when the property view is shown, the current selection contains a file and the view can correctly display information about it.


However if we start to use the selection service as an event publisher,
when the view is opened, the current selection could contain an event that can be totally unrelated with one of the selected workbench event.


This, actually, poses a problem.
But if we can live with the fact that the new view will be refreshed when the user will click again on a workbench element than I think that the solution would still be viable.


Thanks for your reply.

Cheers,
Fabio